| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // Optional members, depending on type. | 78 // Optional members, depending on type. |
| 79 std::string printer_id; // For pending delete. | 79 std::string printer_id; // For pending delete. |
| 80 printing::PrinterBasicInfo printer_info; // For pending registration. | 80 printing::PrinterBasicInfo printer_info; // For pending registration. |
| 81 | 81 |
| 82 PendingTask() : type(PENDING_PRINTERS_NONE) {} | 82 PendingTask() : type(PENDING_PRINTERS_NONE) {} |
| 83 ~PendingTask() {} | 83 ~PendingTask() {} |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 virtual ~CloudPrintConnector(); | 86 virtual ~CloudPrintConnector(); |
| 87 // PrintServerWatcherDelegate implementation | 87 // PrintServerWatcherDelegate implementation |
| 88 virtual void OnPrinterAdded() OVERRIDE; | 88 virtual void OnPrinterAdded() override; |
| 89 // PrinterJobHandler::Delegate implementation | 89 // PrinterJobHandler::Delegate implementation |
| 90 virtual void OnPrinterDeleted(const std::string& printer_name) OVERRIDE; | 90 virtual void OnPrinterDeleted(const std::string& printer_name) override; |
| 91 virtual void OnAuthError() OVERRIDE; | 91 virtual void OnAuthError() override; |
| 92 | 92 |
| 93 // CloudPrintURLFetcher::Delegate implementation. | 93 // CloudPrintURLFetcher::Delegate implementation. |
| 94 virtual CloudPrintURLFetcher::ResponseAction HandleRawData( | 94 virtual CloudPrintURLFetcher::ResponseAction HandleRawData( |
| 95 const net::URLFetcher* source, | 95 const net::URLFetcher* source, |
| 96 const GURL& url, | 96 const GURL& url, |
| 97 const std::string& data) OVERRIDE; | 97 const std::string& data) override; |
| 98 virtual CloudPrintURLFetcher::ResponseAction HandleJSONData( | 98 virtual CloudPrintURLFetcher::ResponseAction HandleJSONData( |
| 99 const net::URLFetcher* source, | 99 const net::URLFetcher* source, |
| 100 const GURL& url, | 100 const GURL& url, |
| 101 base::DictionaryValue* json_data, | 101 base::DictionaryValue* json_data, |
| 102 bool succeeded) OVERRIDE; | 102 bool succeeded) override; |
| 103 virtual CloudPrintURLFetcher::ResponseAction OnRequestAuthError() OVERRIDE; | 103 virtual CloudPrintURLFetcher::ResponseAction OnRequestAuthError() override; |
| 104 virtual std::string GetAuthHeader() OVERRIDE; | 104 virtual std::string GetAuthHeader() override; |
| 105 | 105 |
| 106 // Begin response handlers | 106 // Begin response handlers |
| 107 CloudPrintURLFetcher::ResponseAction HandlePrinterListResponse( | 107 CloudPrintURLFetcher::ResponseAction HandlePrinterListResponse( |
| 108 const net::URLFetcher* source, | 108 const net::URLFetcher* source, |
| 109 const GURL& url, | 109 const GURL& url, |
| 110 base::DictionaryValue* json_data, | 110 base::DictionaryValue* json_data, |
| 111 bool succeeded); | 111 bool succeeded); |
| 112 | 112 |
| 113 CloudPrintURLFetcher::ResponseAction HandlePrinterListResponseSettingsUpdate( | 113 CloudPrintURLFetcher::ResponseAction HandlePrinterListResponseSettingsUpdate( |
| 114 const net::URLFetcher* source, | 114 const net::URLFetcher* source, |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 scoped_refptr<CloudPrintURLFetcher> user_message_request_; | 198 scoped_refptr<CloudPrintURLFetcher> user_message_request_; |
| 199 base::WeakPtrFactory<CloudPrintConnector> stats_ptr_factory_; | 199 base::WeakPtrFactory<CloudPrintConnector> stats_ptr_factory_; |
| 200 | 200 |
| 201 DISALLOW_COPY_AND_ASSIGN(CloudPrintConnector); | 201 DISALLOW_COPY_AND_ASSIGN(CloudPrintConnector); |
| 202 }; | 202 }; |
| 203 | 203 |
| 204 } // namespace cloud_print | 204 } // namespace cloud_print |
| 205 | 205 |
| 206 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONNECTOR_H_ | 206 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONNECTOR_H_ |
| 207 | 207 |
| OLD | NEW |