| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |