| OLD | NEW | 
|---|
| 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium OS 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 CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_H__ | 5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_H__ | 
| 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_H__ | 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_H__ | 
| 7 | 7 | 
| 8 #include <time.h> | 8 #include <time.h> | 
| 9 | 9 | 
| 10 #include <tr1/memory> | 10 #include <tr1/memory> | 
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 77   // Try to resume from a previously Terminate()d update. | 77   // Try to resume from a previously Terminate()d update. | 
| 78   void ResumeUpdating(); | 78   void ResumeUpdating(); | 
| 79 | 79 | 
| 80   // Returns the current status in the out params. Returns true on success. | 80   // Returns the current status in the out params. Returns true on success. | 
| 81   bool GetStatus(int64_t* last_checked_time, | 81   bool GetStatus(int64_t* last_checked_time, | 
| 82                  double* progress, | 82                  double* progress, | 
| 83                  std::string* current_operation, | 83                  std::string* current_operation, | 
| 84                  std::string* new_version, | 84                  std::string* new_version, | 
| 85                  int64_t* new_size); | 85                  int64_t* new_size); | 
| 86 | 86 | 
|  | 87   // Runs setgoodkernel, whose responsibility it is to mark the currently | 
|  | 88   // booted partition has high priority/permanent/etc. | 
|  | 89   void UpdateBootFlags(); | 
|  | 90 | 
| 87   UpdateStatus status() const { return status_; } | 91   UpdateStatus status() const { return status_; } | 
| 88 | 92 | 
| 89   int http_response_code() const { return http_response_code_; } | 93   int http_response_code() const { return http_response_code_; } | 
| 90   void set_http_response_code(int code) { http_response_code_ = code; } | 94   void set_http_response_code(int code) { http_response_code_ = code; } | 
| 91 | 95 | 
| 92   void set_dbus_service(struct UpdateEngineService* dbus_service) { | 96   void set_dbus_service(struct UpdateEngineService* dbus_service) { | 
| 93     dbus_service_ = dbus_service; | 97     dbus_service_ = dbus_service; | 
| 94   } | 98   } | 
| 95 | 99 | 
| 96   UpdateCheckScheduler* update_check_scheduler() const { | 100   UpdateCheckScheduler* update_check_scheduler() const { | 
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 233   // Chrome's proxy settings. | 237   // Chrome's proxy settings. | 
| 234   int proxy_manual_checks_; | 238   int proxy_manual_checks_; | 
| 235 | 239 | 
| 236   // If true, this update cycle we are obeying proxies | 240   // If true, this update cycle we are obeying proxies | 
| 237   bool obeying_proxies_; | 241   bool obeying_proxies_; | 
| 238 | 242 | 
| 239   // Our two proxy resolvers | 243   // Our two proxy resolvers | 
| 240   DirectProxyResolver direct_proxy_resolver_; | 244   DirectProxyResolver direct_proxy_resolver_; | 
| 241   ChromeBrowserProxyResolver chrome_proxy_resolver_; | 245   ChromeBrowserProxyResolver chrome_proxy_resolver_; | 
| 242 | 246 | 
|  | 247   // True if UpdateBootFlags has already been called | 
|  | 248   bool updated_boot_flags_; | 
|  | 249 | 
| 243   DISALLOW_COPY_AND_ASSIGN(UpdateAttempter); | 250   DISALLOW_COPY_AND_ASSIGN(UpdateAttempter); | 
| 244 }; | 251 }; | 
| 245 | 252 | 
| 246 }  // namespace chromeos_update_engine | 253 }  // namespace chromeos_update_engine | 
| 247 | 254 | 
| 248 #endif  // CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_H__ | 255 #endif  // CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_H__ | 
| OLD | NEW | 
|---|