| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_SERVICE_CLOUD_PRINT_PRINT_SYSTEM_H_ | 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_PRINT_SYSTEM_H_ |
| 6 #define CHROME_SERVICE_CLOUD_PRINT_PRINT_SYSTEM_H_ | 6 #define CHROME_SERVICE_CLOUD_PRINT_PRINT_SYSTEM_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 const printing::PrinterCapsAndDefaults&>::Type | 151 const printing::PrinterCapsAndDefaults&>::Type |
| 152 PrinterCapsAndDefaultsCallback; | 152 PrinterCapsAndDefaultsCallback; |
| 153 | 153 |
| 154 virtual ~PrintSystem(); | 154 virtual ~PrintSystem(); |
| 155 | 155 |
| 156 // Initialize print system. This need to be called before any other function | 156 // Initialize print system. This need to be called before any other function |
| 157 // of PrintSystem. | 157 // of PrintSystem. |
| 158 virtual PrintSystemResult Init() = 0; | 158 virtual PrintSystemResult Init() = 0; |
| 159 | 159 |
| 160 // Enumerates the list of installed local and network printers. | 160 // Enumerates the list of installed local and network printers. |
| 161 virtual void EnumeratePrinters(printing::PrinterList* printer_list) = 0; | 161 virtual PrintSystemResult EnumeratePrinters( |
| 162 printing::PrinterList* printer_list) = 0; |
| 162 | 163 |
| 163 // Gets the capabilities and defaults for a specific printer asynchronously. | 164 // Gets the capabilities and defaults for a specific printer asynchronously. |
| 164 virtual void GetPrinterCapsAndDefaults( | 165 virtual void GetPrinterCapsAndDefaults( |
| 165 const std::string& printer_name, | 166 const std::string& printer_name, |
| 166 PrinterCapsAndDefaultsCallback* callback) = 0; | 167 PrinterCapsAndDefaultsCallback* callback) = 0; |
| 167 | 168 |
| 168 // Returns true if printer_name points to a valid printer. | 169 // Returns true if printer_name points to a valid printer. |
| 169 virtual bool IsValidPrinter(const std::string& printer_name) = 0; | 170 virtual bool IsValidPrinter(const std::string& printer_name) = 0; |
| 170 | 171 |
| 171 // Returns true if ticket is valid. | 172 // Returns true if ticket is valid. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 199 // Visual Studio where it gets confused between multiple Delegate | 200 // Visual Studio where it gets confused between multiple Delegate |
| 200 // classes and gives a C2500 error. (I saw this error on the try bots - | 201 // classes and gives a C2500 error. (I saw this error on the try bots - |
| 201 // the workaround was not needed for my machine). | 202 // the workaround was not needed for my machine). |
| 202 typedef PrintSystem::PrintServerWatcher::Delegate PrintServerWatcherDelegate; | 203 typedef PrintSystem::PrintServerWatcher::Delegate PrintServerWatcherDelegate; |
| 203 typedef PrintSystem::PrinterWatcher::Delegate PrinterWatcherDelegate; | 204 typedef PrintSystem::PrinterWatcher::Delegate PrinterWatcherDelegate; |
| 204 typedef PrintSystem::JobSpooler::Delegate JobSpoolerDelegate; | 205 typedef PrintSystem::JobSpooler::Delegate JobSpoolerDelegate; |
| 205 | 206 |
| 206 } // namespace cloud_print | 207 } // namespace cloud_print |
| 207 | 208 |
| 208 #endif // CHROME_SERVICE_CLOUD_PRINT_PRINT_SYSTEM_H_ | 209 #endif // CHROME_SERVICE_CLOUD_PRINT_PRINT_SYSTEM_H_ |
| OLD | NEW |