| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 const std::string& policy_blob, | 191 const std::string& policy_blob, |
| 192 const StorePolicyCallback& callback) = 0; | 192 const StorePolicyCallback& callback) = 0; |
| 193 | 193 |
| 194 // Sends a request to store a policy blob for the specified device-local | 194 // Sends a request to store a policy blob for the specified device-local |
| 195 // account. The result of the operation is reported through |callback|. | 195 // account. The result of the operation is reported through |callback|. |
| 196 virtual void StoreDeviceLocalAccountPolicy( | 196 virtual void StoreDeviceLocalAccountPolicy( |
| 197 const std::string& account_id, | 197 const std::string& account_id, |
| 198 const std::string& policy_blob, | 198 const std::string& policy_blob, |
| 199 const StorePolicyCallback& callback) = 0; | 199 const StorePolicyCallback& callback) = 0; |
| 200 | 200 |
| 201 // Returns whether session manager can be used to restart Chrome in order to |
| 202 // apply per-user session flags. |
| 203 virtual bool SupportsRestartToApplyUserFlags() const = 0; |
| 204 |
| 201 // Sets the flags to be applied next time by the session manager when Chrome | 205 // Sets the flags to be applied next time by the session manager when Chrome |
| 202 // is restarted inside an already started session for a particular user. | 206 // is restarted inside an already started session for a particular user. |
| 203 virtual void SetFlagsForUser(const cryptohome::Identification& cryptohome_id, | 207 virtual void SetFlagsForUser(const cryptohome::Identification& cryptohome_id, |
| 204 const std::vector<std::string>& flags) = 0; | 208 const std::vector<std::string>& flags) = 0; |
| 205 | 209 |
| 206 using StateKeysCallback = | 210 using StateKeysCallback = |
| 207 base::Callback<void(const std::vector<std::string>& state_keys)>; | 211 base::Callback<void(const std::vector<std::string>& state_keys)>; |
| 208 | 212 |
| 209 // Get the currently valid server-backed state keys for the device. | 213 // Get the currently valid server-backed state keys for the device. |
| 210 // Server-backed state keys are opaque, device-unique, time-dependent, | 214 // Server-backed state keys are opaque, device-unique, time-dependent, |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 // Create() should be used instead. | 300 // Create() should be used instead. |
| 297 SessionManagerClient(); | 301 SessionManagerClient(); |
| 298 | 302 |
| 299 private: | 303 private: |
| 300 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); | 304 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); |
| 301 }; | 305 }; |
| 302 | 306 |
| 303 } // namespace chromeos | 307 } // namespace chromeos |
| 304 | 308 |
| 305 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ | 309 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ |
| OLD | NEW |