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

Unified Diff: chrome/browser/chromeos/cros/login_library.h

Issue 7233006: Store/Retrieve CrOS user policy in session_manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 9 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/cros/login_library.h
diff --git a/chrome/browser/chromeos/cros/login_library.h b/chrome/browser/chromeos/cros/login_library.h
index a6c30a343c5b0cdefe4a676796e1e8445acba17c..f4151d7b0c3cccdcf7331ba284204735b318039f 100644
--- a/chrome/browser/chromeos/cros/login_library.h
+++ b/chrome/browser/chromeos/cros/login_library.h
@@ -20,12 +20,31 @@ class LoginLibrary {
// Requests that the Upstart signal login-prompt-ready be emitted.
virtual bool EmitLoginPromptReady() = 0;
+ // Starts a policy retrieval operation. The result will be reported through
+ // |callback|, passing |delegate| verbatimely as the first parameter.
virtual void RequestRetrievePolicy(RetrievePolicyCallback callback,
gfeher 2011/07/21 12:24:23 Is this about device policies? Then please rename
Mattias Nissler (ping if slow) 2011/07/21 14:20:25 You are right in that changing the names would be
gfeher 2011/07/21 23:37:14 My choice: leave it like this for now and do the f
Mattias Nissler (ping if slow) 2011/07/22 11:29:47 Done.
- void* delegate_string) = 0;
+ void* delegate) = 0;
+ // Starts storing |policy| (which should be the serialized form of a
+ // PolicyFetchResponse protobuf). The result will be reported through
+ // |callback|, passing |delegate| verbatimely as the first parameter.
virtual void RequestStorePolicy(const std::string& policy,
gfeher 2011/07/21 12:24:23 Same here.
Mattias Nissler (ping if slow) 2011/07/21 14:20:25 Same reply.
StorePolicyCallback callback,
- void* delegate_bool) = 0;
+ void* delegate) = 0;
+
+ // Starts a user policy retrieval operation for the current user. The result
+ // will be reported through |callback|, passing |delegate| verbatimely as the
+ // first parameter.
+ virtual void RequestRetrieveUserPolicy(RetrievePolicyCallback callback,
+ void* delegate) = 0;
+
+ // Stores user policy for the current user. The policy data is in |policy|,
+ // which should be a serialized PolicyFetchResponse protobuf. The result will
+ // be reported through |callback|, passing |delegate| verbatimely as the first
+ // parameter.
+ virtual void RequestStoreUserPolicy(const std::string& policy,
+ StorePolicyCallback callback,
+ void* delegate) = 0;
// Tells the session manager to start a logged-in session for the user
// |user_email|. |unique_id| is meant to be used when we have a non-human-
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/login_library.cc » ('j') | chrome/browser/policy/cros_user_policy_cache.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698