| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PRINTING_BACKEND_PRINT_BACKEND_H_ | 5 #ifndef PRINTING_BACKEND_PRINT_BACKEND_H_ |
| 6 #define PRINTING_BACKEND_PRINT_BACKEND_H_ | 6 #define PRINTING_BACKEND_PRINT_BACKEND_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 // Gets the information about driver for a specific printer. | 105 // Gets the information about driver for a specific printer. |
| 106 virtual std::string GetPrinterDriverInfo( | 106 virtual std::string GetPrinterDriverInfo( |
| 107 const std::string& printer_name) = 0; | 107 const std::string& printer_name) = 0; |
| 108 | 108 |
| 109 // Returns true if printer_name points to a valid printer. | 109 // Returns true if printer_name points to a valid printer. |
| 110 virtual bool IsValidPrinter(const std::string& printer_name) = 0; | 110 virtual bool IsValidPrinter(const std::string& printer_name) = 0; |
| 111 | 111 |
| 112 // Allocate a print backend. If |print_backend_settings| is NULL, default | 112 // Allocate a print backend. If |print_backend_settings| is NULL, default |
| 113 // settings will be used. | 113 // settings will be used. |
| 114 // Return NULL if no print backend available. | |
| 115 static scoped_refptr<PrintBackend> CreateInstance( | 114 static scoped_refptr<PrintBackend> CreateInstance( |
| 116 const base::DictionaryValue* print_backend_settings); | 115 const base::DictionaryValue* print_backend_settings); |
| 117 | 116 |
| 118 protected: | 117 protected: |
| 119 friend class base::RefCountedThreadSafe<PrintBackend>; | 118 friend class base::RefCountedThreadSafe<PrintBackend>; |
| 120 virtual ~PrintBackend(); | 119 virtual ~PrintBackend(); |
| 121 }; | 120 }; |
| 122 | 121 |
| 123 } // namespace printing | 122 } // namespace printing |
| 124 | 123 |
| 125 #endif // PRINTING_BACKEND_PRINT_BACKEND_H_ | 124 #endif // PRINTING_BACKEND_PRINT_BACKEND_H_ |
| OLD | NEW |