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 CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_ |
6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_ | 6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 namespace cloud_print { | 25 namespace cloud_print { |
26 struct CloudPrintProxyInfo; | 26 struct CloudPrintProxyInfo; |
27 } // namespace cloud_print | 27 } // namespace cloud_print |
28 | 28 |
29 // Layer between the browser user interface and the cloud print proxy code | 29 // Layer between the browser user interface and the cloud print proxy code |
30 // running in the service process. | 30 // running in the service process. |
31 class CloudPrintProxyService : public KeyedService { | 31 class CloudPrintProxyService : public KeyedService { |
32 public: | 32 public: |
33 explicit CloudPrintProxyService(Profile* profile); | 33 explicit CloudPrintProxyService(Profile* profile); |
34 virtual ~CloudPrintProxyService(); | 34 ~CloudPrintProxyService() override; |
35 | 35 |
36 typedef base::Callback<void(const std::vector<std::string>&)> | 36 typedef base::Callback<void(const std::vector<std::string>&)> |
37 PrintersCallback; | 37 PrintersCallback; |
38 | 38 |
39 // Initializes the object. This should be called every time an object of this | 39 // Initializes the object. This should be called every time an object of this |
40 // class is constructed. | 40 // class is constructed. |
41 void Initialize(); | 41 void Initialize(); |
42 | 42 |
43 // Returns list of printer names available for registration. | 43 // Returns list of printer names available for registration. |
44 void GetPrinters(const PrintersCallback& callback); | 44 void GetPrinters(const PrintersCallback& callback); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 // If set, continue trying to disable the connector, and quit the process | 102 // If set, continue trying to disable the connector, and quit the process |
103 // once successful. | 103 // once successful. |
104 bool enforcing_connector_policy_; | 104 bool enforcing_connector_policy_; |
105 | 105 |
106 base::WeakPtrFactory<CloudPrintProxyService> weak_factory_; | 106 base::WeakPtrFactory<CloudPrintProxyService> weak_factory_; |
107 | 107 |
108 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxyService); | 108 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxyService); |
109 }; | 109 }; |
110 | 110 |
111 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_ | 111 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_ |
OLD | NEW |