OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2010 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. | |
4 | |
5 #include "printing/backend/print_backend.h" | |
6 | |
7 #include "base/logging.h" | |
8 | |
9 namespace printing { | |
10 | |
11 class PrintBackendChromeOS : public PrintBackend { | |
sanjeevr
2011/05/24 23:21:25
Please add some comments for this class.
Scott Byer
2011/05/24 23:40:32
We will want a comment here explaining that it's s
| |
12 public: | |
13 PrintBackendChromeOS(); | |
14 virtual ~PrintBackendChromeOS() {} | |
15 | |
16 // PrintBackend implementation. | |
17 virtual bool EnumeratePrinters(PrinterList* printer_list); | |
18 | |
19 virtual bool GetPrinterCapsAndDefaults(const std::string& printer_name, | |
20 PrinterCapsAndDefaults* printer_info); | |
21 | |
22 virtual bool IsValidPrinter(const std::string& printer_name); | |
23 | |
24 private: | |
25 }; | |
26 | |
27 PrintBackendChromeOS::PrintBackendChromeOS() {} | |
28 | |
29 bool PrintBackendChromeOS::EnumeratePrinters(PrinterList* printer_list) { | |
30 return true; | |
31 } | |
32 | |
33 bool PrintBackendChromeOS::GetPrinterCapsAndDefaults( | |
34 const std::string& printer_name, | |
35 PrinterCapsAndDefaults* printer_info) { | |
36 NOTREACHED(); | |
37 return false; | |
38 } | |
39 | |
40 bool PrintBackendChromeOS::IsValidPrinter(const std::string& printer_name) { | |
41 NOTREACHED(); | |
42 return true; | |
43 } | |
44 | |
45 scoped_refptr<PrintBackend> PrintBackend::CreateInstance( | |
46 const DictionaryValue* print_backend_settings) { | |
47 return new PrintBackendChromeOS(); | |
48 } | |
49 | |
50 } // namespace printing | |
51 | |
OLD | NEW |