mac: Flush the autorelease pool after making a browser window in browser tests.
[chromium-blink-merge.git] / printing / backend / print_backend_chromeos.cc
blobe0de2305418c545b6bc4eda04047a7d88f2b58d7
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "printing/backend/print_backend.h"
7 #include "base/logging.h"
9 namespace printing {
11 // Provides a stubbed out PrintBackend implementation for use on ChromeOS.
12 class PrintBackendChromeOS : public PrintBackend {
13 public:
14 PrintBackendChromeOS();
16 // PrintBackend implementation.
17 bool EnumeratePrinters(PrinterList* printer_list) override;
18 std::string GetDefaultPrinterName() override;
19 bool GetPrinterSemanticCapsAndDefaults(
20 const std::string& printer_name,
21 PrinterSemanticCapsAndDefaults* printer_info) override;
22 bool GetPrinterCapsAndDefaults(const std::string& printer_name,
23 PrinterCapsAndDefaults* printer_info) override;
24 std::string GetPrinterDriverInfo(const std::string& printer_name) override;
25 bool IsValidPrinter(const std::string& printer_name) override;
27 protected:
28 ~PrintBackendChromeOS() override {}
31 PrintBackendChromeOS::PrintBackendChromeOS() {}
33 bool PrintBackendChromeOS::EnumeratePrinters(PrinterList* printer_list) {
34 return true;
37 bool PrintBackendChromeOS::GetPrinterSemanticCapsAndDefaults(
38 const std::string& printer_name,
39 PrinterSemanticCapsAndDefaults* printer_info) {
40 NOTREACHED();
41 return false;
44 bool PrintBackendChromeOS::GetPrinterCapsAndDefaults(
45 const std::string& printer_name,
46 PrinterCapsAndDefaults* printer_info) {
47 NOTREACHED();
48 return false;
51 std::string PrintBackendChromeOS::GetPrinterDriverInfo(
52 const std::string& printer_name) {
53 NOTREACHED();
54 return std::string();
57 std::string PrintBackendChromeOS::GetDefaultPrinterName() {
58 return std::string();
61 bool PrintBackendChromeOS::IsValidPrinter(const std::string& printer_name) {
62 NOTREACHED();
63 return true;
66 scoped_refptr<PrintBackend> PrintBackend::CreateInstance(
67 const base::DictionaryValue* print_backend_settings) {
68 return new PrintBackendChromeOS();
71 } // namespace printing