Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(447)

Side by Side Diff: chrome/service/cloud_print/cloud_print_connector.h

Issue 10837320: Add flag to allow deletion of printers when enumerate fails. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/service/cloud_print/cloud_print_connector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/service/cloud_print/cloud_print_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698