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

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

Issue 14215009: Changed cloud print private API to pass all page settings as single object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | « chrome/common/service_messages.h ('k') | 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 DictionaryValue* json_data, 61 DictionaryValue* json_data,
62 bool succeeded); 62 bool succeeded);
63 63
64 enum PendingTaskType { 64 enum PendingTaskType {
65 PENDING_PRINTERS_NONE, 65 PENDING_PRINTERS_NONE,
66 PENDING_PRINTERS_AVAILABLE, 66 PENDING_PRINTERS_AVAILABLE,
67 PENDING_PRINTER_REGISTER, 67 PENDING_PRINTER_REGISTER,
68 PENDING_PRINTER_DELETE 68 PENDING_PRINTER_DELETE
69 }; 69 };
70 70
71 // TODO(jhawkins): This name conflicts with base::PendingTask. 71 // TODO(vitalybuka): Consider delete pending_tasks_ and just use MessageLoop.
72 struct PendingTask { 72 struct PendingTask {
73 PendingTaskType type; 73 PendingTaskType type;
74 // Optional members, depending on type. 74 // Optional members, depending on type.
75 std::string printer_id; // For pending delete. 75 std::string printer_id; // For pending delete.
76 printing::PrinterBasicInfo printer_info; // For pending registration. 76 printing::PrinterBasicInfo printer_info; // For pending registration.
77 77
78 PendingTask() : type(PENDING_PRINTERS_NONE) {} 78 PendingTask() : type(PENDING_PRINTERS_NONE) {}
79 ~PendingTask() {} 79 ~PendingTask() {}
80 }; 80 };
81 81
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // The CloudPrintURLFetcher instance for the user message request. 181 // The CloudPrintURLFetcher instance for the user message request.
182 scoped_refptr<CloudPrintURLFetcher> user_message_request_; 182 scoped_refptr<CloudPrintURLFetcher> user_message_request_;
183 183
184 DISALLOW_COPY_AND_ASSIGN(CloudPrintConnector); 184 DISALLOW_COPY_AND_ASSIGN(CloudPrintConnector);
185 }; 185 };
186 186
187 } // namespace cloud_print 187 } // namespace cloud_print
188 188
189 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONNECTOR_H_ 189 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONNECTOR_H_
190 190
OLDNEW
« no previous file with comments | « chrome/common/service_messages.h ('k') | chrome/service/cloud_print/cloud_print_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698