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

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

Issue 21015010: Remove all traces of deprecated Get/SetReleaseTrack calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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
« no previous file with comments | « chromeos/dbus/fake_update_engine_client.cc ('k') | chromeos/dbus/update_engine_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // Called once RequestUpdateCheck() is complete. Takes one parameter: 80 // Called once RequestUpdateCheck() is complete. Takes one parameter:
81 // - UpdateCheckResult: the result of the update check. 81 // - UpdateCheckResult: the result of the update check.
82 typedef base::Callback<void(UpdateCheckResult)> UpdateCheckCallback; 82 typedef base::Callback<void(UpdateCheckResult)> UpdateCheckCallback;
83 83
84 // Requests an update check and calls |callback| when completed. 84 // Requests an update check and calls |callback| when completed.
85 virtual void RequestUpdateCheck(const UpdateCheckCallback& callback) = 0; 85 virtual void RequestUpdateCheck(const UpdateCheckCallback& callback) = 0;
86 86
87 // Reboots if update has been performed. 87 // Reboots if update has been performed.
88 virtual void RebootAfterUpdate() = 0; 88 virtual void RebootAfterUpdate() = 0;
89 89
90 // DEPRECATED: Use SetChannel instead.
91 // Requests to set the release track (channel). |track| should look like
92 // "beta-channel" or "dev-channel".
93 virtual void SetReleaseTrack(const std::string& track) = 0;
94
95 // Called once GetReleaseTrack() is complete. Takes one parameter;
96 // - string: the release track name like "beta-channel".
97 typedef base::Callback<void(const std::string& channel_name)>
98 GetReleaseTrackCallback;
99
100 // Called once GetChannel() is complete. Takes one parameter; 90 // Called once GetChannel() is complete. Takes one parameter;
101 // - string: the channel name like "beta-channel". 91 // - string: the channel name like "beta-channel".
102 typedef base::Callback<void(const std::string& channel_name)> 92 typedef base::Callback<void(const std::string& channel_name)>
103 GetChannelCallback; 93 GetChannelCallback;
104 94
105 // DEPRECATED: Use GetChannel() instead.
106 // Requests to get the release track and calls |callback| with the
107 // release track (channel). On error, calls |callback| with an empty
108 // string.
109 virtual void GetReleaseTrack(const GetReleaseTrackCallback& callback) = 0;
110
111 // Returns the last status the object received from the update engine. 95 // Returns the last status the object received from the update engine.
112 // 96 //
113 // Ideally, the D-Bus client should be state-less, but there are clients 97 // Ideally, the D-Bus client should be state-less, but there are clients
114 // that need this information. 98 // that need this information.
115 virtual Status GetLastStatus() = 0; 99 virtual Status GetLastStatus() = 0;
116 100
117 // Changes the current channel of the device to the target 101 // Changes the current channel of the device to the target
118 // channel. If the target channel is a less stable channel than the 102 // channel. If the target channel is a less stable channel than the
119 // current channel, then the channel change happens immediately (at 103 // current channel, then the channel change happens immediately (at
120 // the next update check). If the target channel is a more stable 104 // the next update check). If the target channel is a more stable
(...skipping 25 matching lines...) Expand all
146 // Create() should be used instead. 130 // Create() should be used instead.
147 UpdateEngineClient(); 131 UpdateEngineClient();
148 132
149 private: 133 private:
150 DISALLOW_COPY_AND_ASSIGN(UpdateEngineClient); 134 DISALLOW_COPY_AND_ASSIGN(UpdateEngineClient);
151 }; 135 };
152 136
153 } // namespace chromeos 137 } // namespace chromeos
154 138
155 #endif // CHROMEOS_DBUS_UPDATE_ENGINE_CLIENT_H_ 139 #endif // CHROMEOS_DBUS_UPDATE_ENGINE_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_update_engine_client.cc ('k') | chromeos/dbus/update_engine_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698