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

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

Issue 2653823004: Do not restart Chrome to apply user flags with stub session manager (Closed)
Patch Set: .\ Created 3 years, 11 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/mock_session_manager_client.h ('k') | chromeos/dbus/session_manager_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_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
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
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_
OLDNEW
« no previous file with comments | « chromeos/dbus/mock_session_manager_client.h ('k') | chromeos/dbus/session_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698