| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |