| 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_JOB_STATUS_UPDATER_H_ | 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_JOB_STATUS_UPDATER_H_ |
| 6 #define CHROME_SERVICE_CLOUD_PRINT_JOB_STATUS_UPDATER_H_ | 6 #define CHROME_SERVICE_CLOUD_PRINT_JOB_STATUS_UPDATER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 // Checks the status of the local print job and sends an update. | 43 // Checks the status of the local print job and sends an update. |
| 44 void UpdateStatus(); | 44 void UpdateStatus(); |
| 45 void Stop(); | 45 void Stop(); |
| 46 | 46 |
| 47 // CloudPrintURLFetcher::Delegate implementation. | 47 // CloudPrintURLFetcher::Delegate implementation. |
| 48 virtual CloudPrintURLFetcher::ResponseAction HandleJSONData( | 48 virtual CloudPrintURLFetcher::ResponseAction HandleJSONData( |
| 49 const net::URLFetcher* source, | 49 const net::URLFetcher* source, |
| 50 const GURL& url, | 50 const GURL& url, |
| 51 base::DictionaryValue* json_data, | 51 base::DictionaryValue* json_data, |
| 52 bool succeeded) OVERRIDE; | 52 bool succeeded) override; |
| 53 virtual CloudPrintURLFetcher::ResponseAction OnRequestAuthError() OVERRIDE; | 53 virtual CloudPrintURLFetcher::ResponseAction OnRequestAuthError() override; |
| 54 virtual std::string GetAuthHeader() OVERRIDE; | 54 virtual std::string GetAuthHeader() override; |
| 55 | 55 |
| 56 base::Time start_time() const { | 56 base::Time start_time() const { |
| 57 return start_time_; | 57 return start_time_; |
| 58 } | 58 } |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 friend class base::RefCountedThreadSafe<JobStatusUpdater>; | 61 friend class base::RefCountedThreadSafe<JobStatusUpdater>; |
| 62 virtual ~JobStatusUpdater(); | 62 virtual ~JobStatusUpdater(); |
| 63 | 63 |
| 64 base::Time start_time_; | 64 base::Time start_time_; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 78 | 78 |
| 79 // This typedef is to workaround the issue with certain versions of | 79 // This typedef is to workaround the issue with certain versions of |
| 80 // Visual Studio where it gets confused between multiple Delegate | 80 // Visual Studio where it gets confused between multiple Delegate |
| 81 // classes and gives a C2500 error. (I saw this error on the try bots - | 81 // classes and gives a C2500 error. (I saw this error on the try bots - |
| 82 // the workaround was not needed for my machine). | 82 // the workaround was not needed for my machine). |
| 83 typedef JobStatusUpdater::Delegate JobStatusUpdaterDelegate; | 83 typedef JobStatusUpdater::Delegate JobStatusUpdaterDelegate; |
| 84 | 84 |
| 85 } // namespace cloud_print | 85 } // namespace cloud_print |
| 86 | 86 |
| 87 #endif // CHROME_SERVICE_CLOUD_PRINT_JOB_STATUS_UPDATER_H_ | 87 #endif // CHROME_SERVICE_CLOUD_PRINT_JOB_STATUS_UPDATER_H_ |
| OLD | NEW |