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

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

Issue 2060623002: Implementation of Device End of Life Notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase the branch Created 4 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
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 bool is_powerwash_allowed) = 0; 126 bool is_powerwash_allowed) = 0;
127 127
128 // If |get_current_channel| is set to true, calls |callback| with 128 // If |get_current_channel| is set to true, calls |callback| with
129 // the name of the channel that the device is currently 129 // the name of the channel that the device is currently
130 // on. Otherwise, it calls it with the name of the channel the 130 // on. Otherwise, it calls it with the name of the channel the
131 // device is supposed to be (in case of a pending channel 131 // device is supposed to be (in case of a pending channel
132 // change). On error, calls |callback| with an empty string. 132 // change). On error, calls |callback| with an empty string.
133 virtual void GetChannel(bool get_current_channel, 133 virtual void GetChannel(bool get_current_channel,
134 const GetChannelCallback& callback) = 0; 134 const GetChannelCallback& callback) = 0;
135 135
136 // Called once GetEolStatus() is complete. Takes one parameter;
137 // - EolStatus: the eol status of the device.
138 typedef base::Callback<void(int status)> GetEolStatusCallback;
stevenjb 2016/06/18 00:52:58 It looks like we should be calling this with updat
139
140 // Get Eol status of the device and calls |callback| when completed.
141 virtual void GetEolStatus(const GetEolStatusCallback& callback) = 0;
142
136 // Returns an empty UpdateCheckCallback that does nothing. 143 // Returns an empty UpdateCheckCallback that does nothing.
137 static UpdateCheckCallback EmptyUpdateCheckCallback(); 144 static UpdateCheckCallback EmptyUpdateCheckCallback();
138 145
139 // Creates the instance. 146 // Creates the instance.
140 static UpdateEngineClient* Create(DBusClientImplementationType type); 147 static UpdateEngineClient* Create(DBusClientImplementationType type);
141 148
142 // Returns true if |target_channel| is more stable than |current_channel|. 149 // Returns true if |target_channel| is more stable than |current_channel|.
143 static bool IsTargetChannelMoreStable(const std::string& current_channel, 150 static bool IsTargetChannelMoreStable(const std::string& current_channel,
144 const std::string& target_channel); 151 const std::string& target_channel);
145 152
146 protected: 153 protected:
147 // Create() should be used instead. 154 // Create() should be used instead.
148 UpdateEngineClient(); 155 UpdateEngineClient();
149 156
150 private: 157 private:
151 DISALLOW_COPY_AND_ASSIGN(UpdateEngineClient); 158 DISALLOW_COPY_AND_ASSIGN(UpdateEngineClient);
152 }; 159 };
153 160
154 } // namespace chromeos 161 } // namespace chromeos
155 162
156 #endif // CHROMEOS_DBUS_UPDATE_ENGINE_CLIENT_H_ 163 #endif // CHROMEOS_DBUS_UPDATE_ENGINE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698