Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Side by Side Diff: chromeos/dbus/update_engine_client.h

Issue 309533006: Added processing for a lost status to UpdateEngineClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Switch fixed. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 CHROMEOS_DBUS_UPDATE_ENGINE_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_UPDATE_ENGINE_CLIENT_H_
6 #define CHROMEOS_DBUS_UPDATE_ENGINE_CLIENT_H_ 6 #define CHROMEOS_DBUS_UPDATE_ENGINE_CLIENT_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "chromeos/chromeos_export.h" 10 #include "chromeos/chromeos_export.h"
(...skipping 16 matching lines...) Expand all
27 // Any state can transition to REPORTING_ERROR_EVENT and then on to IDLE. 27 // Any state can transition to REPORTING_ERROR_EVENT and then on to IDLE.
28 enum UpdateStatusOperation { 28 enum UpdateStatusOperation {
29 UPDATE_STATUS_ERROR = -1, 29 UPDATE_STATUS_ERROR = -1,
30 UPDATE_STATUS_IDLE = 0, 30 UPDATE_STATUS_IDLE = 0,
31 UPDATE_STATUS_CHECKING_FOR_UPDATE, 31 UPDATE_STATUS_CHECKING_FOR_UPDATE,
32 UPDATE_STATUS_UPDATE_AVAILABLE, 32 UPDATE_STATUS_UPDATE_AVAILABLE,
33 UPDATE_STATUS_DOWNLOADING, 33 UPDATE_STATUS_DOWNLOADING,
34 UPDATE_STATUS_VERIFYING, 34 UPDATE_STATUS_VERIFYING,
35 UPDATE_STATUS_FINALIZING, 35 UPDATE_STATUS_FINALIZING,
36 UPDATE_STATUS_UPDATED_NEED_REBOOT, 36 UPDATE_STATUS_UPDATED_NEED_REBOOT,
37 UPDATE_STATUS_REPORTING_ERROR_EVENT 37 UPDATE_STATUS_REPORTING_ERROR_EVENT,
38 UPDATE_STATUS_ATTEMPTING_ROLLBACK
38 }; 39 };
39 40
40 // The status of the ongoing update attempt. 41 // The status of the ongoing update attempt.
41 struct Status { 42 struct Status {
42 Status() : status(UPDATE_STATUS_IDLE), 43 Status() : status(UPDATE_STATUS_IDLE),
43 download_progress(0.0), 44 download_progress(0.0),
44 last_checked_time(0), 45 last_checked_time(0),
45 new_size(0) { 46 new_size(0) {
46 } 47 }
47 48
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // Create() should be used instead. 138 // Create() should be used instead.
138 UpdateEngineClient(); 139 UpdateEngineClient();
139 140
140 private: 141 private:
141 DISALLOW_COPY_AND_ASSIGN(UpdateEngineClient); 142 DISALLOW_COPY_AND_ASSIGN(UpdateEngineClient);
142 }; 143 };
143 144
144 } // namespace chromeos 145 } // namespace chromeos
145 146
146 #endif // CHROMEOS_DBUS_UPDATE_ENGINE_CLIENT_H_ 147 #endif // CHROMEOS_DBUS_UPDATE_ENGINE_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/help/version_updater_chromeos.cc ('k') | chromeos/dbus/update_engine_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698