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

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

Issue 8565024: base: Refactor PendingTask out of MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes. Created 9 years, 1 month 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 | « base/threading/worker_pool_win.cc ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 printing::PrinterList* printer_list); 119 printing::PrinterList* printer_list);
120 120
121 void InitJobHandlerForPrinter(DictionaryValue* printer_data); 121 void InitJobHandlerForPrinter(DictionaryValue* printer_data);
122 122
123 enum PendingTaskType { 123 enum PendingTaskType {
124 PENDING_PRINTERS_AVAILABLE, 124 PENDING_PRINTERS_AVAILABLE,
125 PENDING_PRINTER_REGISTER, 125 PENDING_PRINTER_REGISTER,
126 PENDING_PRINTER_DELETE 126 PENDING_PRINTER_DELETE
127 }; 127 };
128 128
129 // TODO(jhawkins): This name conflicts with base::PendingTask.
129 struct PendingTask { 130 struct PendingTask {
130 PendingTaskType type; 131 PendingTaskType type;
131 // Optional members, depending on type. 132 // Optional members, depending on type.
132 std::string printer_id; // For pending delete. 133 std::string printer_id; // For pending delete.
133 printing::PrinterBasicInfo printer_info; // For pending registration. 134 printing::PrinterBasicInfo printer_info; // For pending registration.
134 135
135 PendingTask() {} 136 PendingTask() {}
136 ~PendingTask() {} 137 ~PendingTask() {}
137 }; 138 };
138 139
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // The CloudPrintURLFetcher instance for the current request. 178 // The CloudPrintURLFetcher instance for the current request.
178 scoped_refptr<CloudPrintURLFetcher> request_; 179 scoped_refptr<CloudPrintURLFetcher> request_;
179 // The CloudPrintURLFetcher instance for the user message request. 180 // The CloudPrintURLFetcher instance for the user message request.
180 scoped_refptr<CloudPrintURLFetcher> user_message_request_; 181 scoped_refptr<CloudPrintURLFetcher> user_message_request_;
181 182
182 DISALLOW_COPY_AND_ASSIGN(CloudPrintConnector); 183 DISALLOW_COPY_AND_ASSIGN(CloudPrintConnector);
183 }; 184 };
184 185
185 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONNECTOR_H_ 186 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONNECTOR_H_
186 187
OLDNEW
« no previous file with comments | « base/threading/worker_pool_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698