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

Side by Side Diff: chrome/browser/policy/user_cloud_policy_store_base.h

Issue 10693022: Add support for loading user cloud policy on desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed redundant #ifdef OS_CHROMEOS guard Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_POLICY_USER_CLOUD_POLICY_STORE_BASE_H_
6 #define CHROME_BROWSER_POLICY_USER_CLOUD_POLICY_STORE_BASE_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h"
13 #include "chrome/browser/policy/cloud_policy_store.h"
14
15 namespace policy {
16
17 // Base class that implements common cross-platform UserCloudPolicyStore
18 // functionality.
19 class UserCloudPolicyStoreBase : public CloudPolicyStore {
20 public:
21 UserCloudPolicyStoreBase();
22 virtual ~UserCloudPolicyStoreBase();
23
24 protected:
25 // Creates a validator configured to validate a user policy. The caller owns
26 // the resulting object until StartValidation() is invoked.
27 scoped_ptr<UserCloudPolicyValidator> CreateValidator(
28 scoped_ptr<enterprise_management::PolicyFetchResponse> policy,
29 const UserCloudPolicyValidator::CompletionCallback& callback);
30
31 // Sets |policy_data| and |payload| as the active policy.
32 void InstallPolicy(
33 scoped_ptr<enterprise_management::PolicyData> policy_data,
34 scoped_ptr<enterprise_management::CloudPolicySettings> payload);
35
36 private:
37 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyStoreBase);
38 };
39
40 } // namespace policy
41
42 #endif // CHROME_BROWSER_POLICY_USER_CLOUD_POLICY_STORE_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698