summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/session_manager_client.h
diff options
context:
space:
mode:
authormnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-06 01:21:21 +0000
committermnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-06 01:21:21 +0000
commit328a9784a4f4b1790eeb2c223d4773c0d4904d4c (patch)
treee35ec478f163a28a68b0224d361343b4fa36d82a /chromeos/dbus/session_manager_client.h
parenta2b886affc41cc08c10e712b5985d0bb6afd8b25 (diff)
downloadchromium_src-328a9784a4f4b1790eeb2c223d4773c0d4904d4c.zip
chromium_src-328a9784a4f4b1790eeb2c223d4773c0d4904d4c.tar.gz
chromium_src-328a9784a4f4b1790eeb2c223d4773c0d4904d4c.tar.bz2
Implement GetServerBackedStateKeys API in SessionManagerClient.
This call is used to request the current server-backed state keys from session_manager. BUG=chromium:358213 TEST=None Review URL: https://codereview.chromium.org/240373003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268360 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/session_manager_client.h')
-rw-r--r--chromeos/dbus/session_manager_client.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/chromeos/dbus/session_manager_client.h b/chromeos/dbus/session_manager_client.h
index 2a5792d..a9ae670 100644
--- a/chromeos/dbus/session_manager_client.h
+++ b/chromeos/dbus/session_manager_client.h
@@ -7,6 +7,7 @@
#include <map>
#include <string>
+#include <vector>
#include "base/callback.h"
#include "base/observer_list.h"
@@ -172,6 +173,18 @@ class CHROMEOS_EXPORT SessionManagerClient : public DBusClient {
virtual void SetFlagsForUser(const std::string& username,
const std::vector<std::string>& flags) = 0;
+ typedef base::Callback<void(const std::vector<std::string>& state_keys)>
+ StateKeysCallback;
+
+ // Get the currently valid server-backed state keys for the device.
+ // Server-backed state keys are opaque, device-unique, time-dependent,
+ // client-determined identifiers that are used for keying state in the cloud
+ // for the device to retrieve after a device factory reset.
+ //
+ // The state keys are returned asynchronously via |callback|. The callback
+ // will be invoked with an empty state key vector in case of errors.
+ virtual void GetServerBackedStateKeys(const StateKeysCallback& callback) = 0;
+
// Creates the instance.
static SessionManagerClient* Create(DBusClientImplementationType type);