Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_SESSION_MANAGER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 204 | 204 |
| 205 using StateKeysCallback = | 205 using StateKeysCallback = |
| 206 base::Callback<void(const std::vector<std::string>& state_keys)>; | 206 base::Callback<void(const std::vector<std::string>& state_keys)>; |
| 207 | 207 |
| 208 // Get the currently valid server-backed state keys for the device. | 208 // Get the currently valid server-backed state keys for the device. |
| 209 // Server-backed state keys are opaque, device-unique, time-dependent, | 209 // Server-backed state keys are opaque, device-unique, time-dependent, |
| 210 // client-determined identifiers that are used for keying state in the cloud | 210 // client-determined identifiers that are used for keying state in the cloud |
| 211 // for the device to retrieve after a device factory reset. | 211 // for the device to retrieve after a device factory reset. |
| 212 // | 212 // |
| 213 // The state keys are returned asynchronously via |callback|. The callback | 213 // The state keys are returned asynchronously via |callback|. The callback |
| 214 // will be invoked with an empty state key vector in case of errors. | 214 // will be invoked with an empty state key vector in case of errors. If the |
|
Thiemo Nagel
2016/11/30 12:57:09
Nit: "will be" --> "is"
| |
| 215 // time sync fails or there's no network, the callback is never invoked. | |
| 215 virtual void GetServerBackedStateKeys(const StateKeysCallback& callback) = 0; | 216 virtual void GetServerBackedStateKeys(const StateKeysCallback& callback) = 0; |
| 216 | 217 |
| 217 // Used for several ARC methods. Takes a boolean indicating whether the | 218 // Used for several ARC methods. Takes a boolean indicating whether the |
| 218 // operation was successful or not. | 219 // operation was successful or not. |
| 219 using ArcCallback = base::Callback<void(bool success)>; | 220 using ArcCallback = base::Callback<void(bool success)>; |
| 220 | 221 |
| 221 // Used for GetArcStartTime. Takes a boolean indicating whether the | 222 // Used for GetArcStartTime. Takes a boolean indicating whether the |
| 222 // operation was successful or not and the ticks of ARC start time if it | 223 // operation was successful or not and the ticks of ARC start time if it |
| 223 // is successful. | 224 // is successful. |
| 224 using GetArcStartTimeCallback = | 225 using GetArcStartTimeCallback = |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 282 // Create() should be used instead. | 283 // Create() should be used instead. |
| 283 SessionManagerClient(); | 284 SessionManagerClient(); |
| 284 | 285 |
| 285 private: | 286 private: |
| 286 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); | 287 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); |
| 287 }; | 288 }; |
| 288 | 289 |
| 289 } // namespace chromeos | 290 } // namespace chromeos |
| 290 | 291 |
| 291 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ | 292 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ |
| OLD | NEW |