| 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 | 210 |
| 211 // Pointer to the UMA metrics collection library. | 211 // Pointer to the UMA metrics collection library. |
| 212 MetricsLibraryInterface* metrics_lib_; | 212 MetricsLibraryInterface* metrics_lib_; |
| 213 | 213 |
| 214 // The current UpdateCheckScheduler to notify of state transitions. | 214 // The current UpdateCheckScheduler to notify of state transitions. |
| 215 UpdateCheckScheduler* update_check_scheduler_; | 215 UpdateCheckScheduler* update_check_scheduler_; |
| 216 | 216 |
| 217 // Pending error event, if any. | 217 // Pending error event, if any. |
| 218 scoped_ptr<OmahaEvent> error_event_; | 218 scoped_ptr<OmahaEvent> error_event_; |
| 219 | 219 |
| 220 // If we should request a reboot even tho we failed the update |
| 221 bool fake_update_success_; |
| 222 |
| 220 // HTTP server response code from the last HTTP request action. | 223 // HTTP server response code from the last HTTP request action. |
| 221 int http_response_code_; | 224 int http_response_code_; |
| 222 | 225 |
| 223 // Current process priority. | 226 // Current process priority. |
| 224 utils::ProcessPriority priority_; | 227 utils::ProcessPriority priority_; |
| 225 | 228 |
| 226 // The process priority management timeout source. | 229 // The process priority management timeout source. |
| 227 GSource* manage_priority_source_; | 230 GSource* manage_priority_source_; |
| 228 | 231 |
| 229 // Set to true if an update download is active (and BytesReceived | 232 // Set to true if an update download is active (and BytesReceived |
| (...skipping 24 matching lines...) Expand all Loading... |
| 254 | 257 |
| 255 // True if UpdateBootFlags has already been called | 258 // True if UpdateBootFlags has already been called |
| 256 bool updated_boot_flags_; | 259 bool updated_boot_flags_; |
| 257 | 260 |
| 258 DISALLOW_COPY_AND_ASSIGN(UpdateAttempter); | 261 DISALLOW_COPY_AND_ASSIGN(UpdateAttempter); |
| 259 }; | 262 }; |
| 260 | 263 |
| 261 } // namespace chromeos_update_engine | 264 } // namespace chromeos_update_engine |
| 262 | 265 |
| 263 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_H__ | 266 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_H__ |
| OLD | NEW |