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

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: Tweaked some comments after self-review. 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/compiler_specific.h"
Mattias Nissler (ping if slow) 2012/08/03 12:19:08 needed?
Andrew T Wilson (Slow) 2012/08/04 00:54:41 Done.
12 #include "base/file_path.h"
Mattias Nissler (ping if slow) 2012/08/03 12:19:08 needed?
Andrew T Wilson (Slow) 2012/08/04 00:54:41 Done.
13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h"
15 #include "chrome/browser/policy/cloud_policy_store.h"
16
17 namespace policy {
18
19 // Base class that implements common cross-platform UserCloudPolicyStore
20 // functionality.
21 class UserCloudPolicyStoreBase : public CloudPolicyStore {
22 public:
23 UserCloudPolicyStoreBase();
24 virtual ~UserCloudPolicyStoreBase();
25
26 protected:
27 // Creates a validator configured to validate a user policy. The caller owns
28 // the resulting object until StartValidation() is invoked.
29 scoped_ptr<UserCloudPolicyValidator> CreateValidator(
30 scoped_ptr<enterprise_management::PolicyFetchResponse> policy,
31 const UserCloudPolicyValidator::CompletionCallback& callback);
32
33 // Sets |policy_data| and |payload| as the active policy.
34 void InstallPolicy(
35 scoped_ptr<enterprise_management::PolicyData> policy_data,
36 scoped_ptr<enterprise_management::CloudPolicySettings> payload);
37
38 private:
39 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyStoreBase);
40 };
41
42 } // namespace policy
43
44 #endif // CHROME_BROWSER_POLICY_USER_CLOUD_POLICY_STORE_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698