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

Side by Side Diff: chrome/browser/configuration_policy_store.h

Issue 1692011: Implementation of managed policy: Policy Abstraction (Closed)
Patch Set: check no changes Created 10 years, 7 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
« no previous file with comments | « chrome/browser/configuration_policy_provider.h ('k') | chrome/browser/dummy_pref_store.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 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_CONFIGURATION_POLICY_STORE_H_
6 #define CHROME_BROWSER_CONFIGURATION_POLICY_STORE_H_
7
8 #include "base/values.h"
9
10 // An abstract super class for policy stores that provides a method that can be
11 // called by a |ConfigurationPolicyProvider| to specify a policy.
12 class ConfigurationPolicyStore {
13 public:
14 ConfigurationPolicyStore() {}
15 virtual ~ConfigurationPolicyStore() {}
16
17 enum PolicyType {
18 kPolicyHomePage,
19 kPolicyHomepageIsNewTabPage,
20 kPolicyCookiesEnabled
21 };
22
23 // A |ConfigurationPolicyProvider| specifes the value of a policy setting
24 // through a call to |Apply|.
25 // The configuration policy pref store takes over the ownership of |value|.
26 virtual void Apply(PolicyType policy, Value* value) = 0;
27
28 private:
29 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyStore);
30 };
31
32 #endif // CHROME_BROWSER_CONFIGURATION_POLICY_STORE_H_
33
OLDNEW
« no previous file with comments | « chrome/browser/configuration_policy_provider.h ('k') | chrome/browser/dummy_pref_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698