| 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,
|
| - 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,
|
| 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-
|
|
|