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

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

Issue 614363002: Added Aura notification that relaunch and powerwash is required in case of downgrade. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More fixes to StstemTrayDelegateWin. Created 6 years, 2 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
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 <string>
9 #include <vector>
10
8 #include "base/callback.h" 11 #include "base/callback.h"
9 #include "base/observer_list.h" 12 #include "base/observer_list.h"
10 #include "chromeos/chromeos_export.h" 13 #include "chromeos/chromeos_export.h"
11 #include "chromeos/dbus/dbus_client.h" 14 #include "chromeos/dbus/dbus_client.h"
12 #include "chromeos/dbus/dbus_client_implementation_type.h" 15 #include "chromeos/dbus/dbus_client_implementation_type.h"
13 16
14 #include <string>
15
16 namespace chromeos { 17 namespace chromeos {
17 18
18 // UpdateEngineClient is used to communicate with the update engine. 19 // UpdateEngineClient is used to communicate with the update engine.
19 class CHROMEOS_EXPORT UpdateEngineClient : public DBusClient { 20 class CHROMEOS_EXPORT UpdateEngineClient : public DBusClient {
20 public: 21 public:
22 static const std::string kReleaseChannelDev;
23 static const std::string kReleaseChannelBeta;
24 static const std::string kReleaseChannelStable;
25
26 static const std::vector<std::string> kReleaseChannelsList;
stevenjb 2014/10/01 22:26:44 No complex static members: http://google-styleguid
ygorshenin1 2014/10/02 14:21:35 Done.
27
21 // Edges for state machine 28 // Edges for state machine
22 // IDLE->CHECKING_FOR_UPDATE 29 // IDLE->CHECKING_FOR_UPDATE
23 // CHECKING_FOR_UPDATE->IDLE 30 // CHECKING_FOR_UPDATE->IDLE
24 // CHECKING_FOR_UPDATE->UPDATE_AVAILABLE 31 // CHECKING_FOR_UPDATE->UPDATE_AVAILABLE
25 // ... 32 // ...
26 // FINALIZING->UPDATE_NEED_REBOOT 33 // FINALIZING->UPDATE_NEED_REBOOT
27 // Any state can transition to REPORTING_ERROR_EVENT and then on to IDLE. 34 // Any state can transition to REPORTING_ERROR_EVENT and then on to IDLE.
28 enum UpdateStatusOperation { 35 enum UpdateStatusOperation {
29 UPDATE_STATUS_ERROR = -1, 36 UPDATE_STATUS_ERROR = -1,
30 UPDATE_STATUS_IDLE = 0, 37 UPDATE_STATUS_IDLE = 0,
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // Create() should be used instead. 145 // Create() should be used instead.
139 UpdateEngineClient(); 146 UpdateEngineClient();
140 147
141 private: 148 private:
142 DISALLOW_COPY_AND_ASSIGN(UpdateEngineClient); 149 DISALLOW_COPY_AND_ASSIGN(UpdateEngineClient);
143 }; 150 };
144 151
145 } // namespace chromeos 152 } // namespace chromeos
146 153
147 #endif // CHROMEOS_DBUS_UPDATE_ENGINE_CLIENT_H_ 154 #endif // CHROMEOS_DBUS_UPDATE_ENGINE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698