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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 // Get the default printer name. Empty string if no default printer. | 61 // Get the default printer name. Empty string if no default printer. |
62 virtual std::string GetDefaultPrinterName() = 0; | 62 virtual std::string GetDefaultPrinterName() = 0; |
63 | 63 |
64 // Gets the capabilities and defaults for a specific printer. | 64 // Gets the capabilities and defaults for a specific printer. |
65 virtual bool GetPrinterCapsAndDefaults( | 65 virtual bool GetPrinterCapsAndDefaults( |
66 const std::string& printer_name, | 66 const std::string& printer_name, |
67 PrinterCapsAndDefaults* printer_info) = 0; | 67 PrinterCapsAndDefaults* printer_info) = 0; |
68 | 68 |
69 // Gets the information about driver for a specific printer. | 69 // Gets the information about driver for a specific printer. |
70 virtual bool GetPrinterDriverInfo( | 70 virtual std::string GetPrinterDriverInfo( |
71 const std::string& printer_name, | 71 const std::string& printer_name) = 0; |
72 std::string* driver_info) = 0; | |
73 | 72 |
74 // Returns true if printer_name points to a valid printer. | 73 // Returns true if printer_name points to a valid printer. |
75 virtual bool IsValidPrinter(const std::string& printer_name) = 0; | 74 virtual bool IsValidPrinter(const std::string& printer_name) = 0; |
76 | 75 |
77 // Allocate a print backend. If |print_backend_settings| is NULL, default | 76 // Allocate a print backend. If |print_backend_settings| is NULL, default |
78 // settings will be used. | 77 // settings will be used. |
79 // Return NULL if no print backend available. | 78 // Return NULL if no print backend available. |
80 static scoped_refptr<PrintBackend> CreateInstance( | 79 static scoped_refptr<PrintBackend> CreateInstance( |
81 const base::DictionaryValue* print_backend_settings); | 80 const base::DictionaryValue* print_backend_settings); |
82 }; | 81 }; |
83 | 82 |
84 } // namespace printing | 83 } // namespace printing |
85 | 84 |
86 #endif // PRINTING_BACKEND_PRINT_BACKEND_H_ | 85 #endif // PRINTING_BACKEND_PRINT_BACKEND_H_ |
OLD | NEW |