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 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 12 matching lines...) Expand all Loading... |
23 | 23 |
24 std::string printer_name; | 24 std::string printer_name; |
25 std::string printer_description; | 25 std::string printer_description; |
26 int printer_status; | 26 int printer_status; |
27 std::map<std::string, std::string> options; | 27 std::map<std::string, std::string> options; |
28 }; | 28 }; |
29 | 29 |
30 typedef std::vector<PrinterBasicInfo> PrinterList; | 30 typedef std::vector<PrinterBasicInfo> PrinterList; |
31 | 31 |
32 struct PrinterCapsAndDefaults { | 32 struct PrinterCapsAndDefaults { |
| 33 PrinterCapsAndDefaults(); |
| 34 ~PrinterCapsAndDefaults(); |
| 35 |
33 std::string printer_capabilities; | 36 std::string printer_capabilities; |
34 std::string caps_mime_type; | 37 std::string caps_mime_type; |
35 std::string printer_defaults; | 38 std::string printer_defaults; |
36 std::string defaults_mime_type; | 39 std::string defaults_mime_type; |
37 }; | 40 }; |
38 | 41 |
39 // PrintBackend class will provide interface for different print backends | 42 // PrintBackend class will provide interface for different print backends |
40 // (Windows, CUPS) to implement. User will call CreateInstance() to | 43 // (Windows, CUPS) to implement. User will call CreateInstance() to |
41 // obtain available print backend. | 44 // obtain available print backend. |
42 // Please note, that PrintBackend is not platform specific, but rather | 45 // Please note, that PrintBackend is not platform specific, but rather |
(...skipping 18 matching lines...) Expand all Loading... |
61 // Allocate a print backend. If |print_backend_settings| is NULL, default | 64 // Allocate a print backend. If |print_backend_settings| is NULL, default |
62 // settings will be used. | 65 // settings will be used. |
63 // Return NULL if no print backend available. | 66 // Return NULL if no print backend available. |
64 static scoped_refptr<PrintBackend> CreateInstance( | 67 static scoped_refptr<PrintBackend> CreateInstance( |
65 const DictionaryValue* print_backend_settings); | 68 const DictionaryValue* print_backend_settings); |
66 }; | 69 }; |
67 | 70 |
68 } // namespace printing | 71 } // namespace printing |
69 | 72 |
70 #endif // PRINTING_BACKEND_PRINT_BACKEND_H_ | 73 #endif // PRINTING_BACKEND_PRINT_BACKEND_H_ |
OLD | NEW |