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_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONNECTOR_H_ | 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONNECTOR_H_ |
6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONNECTOR_H_ | 6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONNECTOR_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 // Id of the Cloud Print proxy. | 172 // Id of the Cloud Print proxy. |
173 std::string proxy_id_; | 173 std::string proxy_id_; |
174 // Cloud Print server url. | 174 // Cloud Print server url. |
175 GURL cloud_print_server_url_; | 175 GURL cloud_print_server_url_; |
176 // A map of printer id to job handler. | 176 // A map of printer id to job handler. |
177 typedef std::map<std::string, scoped_refptr<PrinterJobHandler> > | 177 typedef std::map<std::string, scoped_refptr<PrinterJobHandler> > |
178 JobHandlerMap; | 178 JobHandlerMap; |
179 JobHandlerMap job_handler_map_; | 179 JobHandlerMap job_handler_map_; |
180 // Next response handler. | 180 // Next response handler. |
181 ResponseHandler next_response_handler_; | 181 ResponseHandler next_response_handler_; |
| 182 // If |true| printers that are not found locally will be deleted on GCP |
| 183 // even if the local enumeration failed. |
| 184 bool delete_on_enum_fail_; |
182 // The list of pending tasks to be done in the background. | 185 // The list of pending tasks to be done in the background. |
183 std::list<PendingTask> pending_tasks_; | 186 std::list<PendingTask> pending_tasks_; |
184 // The CloudPrintURLFetcher instance for the current request. | 187 // The CloudPrintURLFetcher instance for the current request. |
185 scoped_refptr<CloudPrintURLFetcher> request_; | 188 scoped_refptr<CloudPrintURLFetcher> request_; |
186 // The CloudPrintURLFetcher instance for the user message request. | 189 // The CloudPrintURLFetcher instance for the user message request. |
187 scoped_refptr<CloudPrintURLFetcher> user_message_request_; | 190 scoped_refptr<CloudPrintURLFetcher> user_message_request_; |
188 | 191 |
189 DISALLOW_COPY_AND_ASSIGN(CloudPrintConnector); | 192 DISALLOW_COPY_AND_ASSIGN(CloudPrintConnector); |
190 }; | 193 }; |
191 | 194 |
192 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONNECTOR_H_ | 195 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONNECTOR_H_ |
193 | 196 |
OLD | NEW |