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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/configuration_policy_store.h
diff --git a/chrome/browser/configuration_policy_store.h b/chrome/browser/configuration_policy_store.h
new file mode 100644
index 0000000000000000000000000000000000000000..8d2ea9599be9e650a7423c23545c7de232137df4
--- /dev/null
+++ b/chrome/browser/configuration_policy_store.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CONFIGURATION_POLICY_STORE_H_
+#define CHROME_BROWSER_CONFIGURATION_POLICY_STORE_H_
+
+#include "base/values.h"
+
+// An abstract super class for policy stores that provides a method that can be
+// called by a |ConfigurationPolicyProvider| to specify a policy.
+class ConfigurationPolicyStore {
+ public:
+ ConfigurationPolicyStore() {}
+ virtual ~ConfigurationPolicyStore() {}
+
+ enum PolicyType {
+ kPolicyHomePage,
+ kPolicyHomepageIsNewTabPage,
+ kPolicyCookiesEnabled
+ };
+
+ // A |ConfigurationPolicyProvider| specifes the value of a policy setting
+ // through a call to |Apply|.
+ // The configuration policy pref store takes over the ownership of |value|.
+ virtual void Apply(PolicyType policy, Value* value) = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyStore);
+};
+
+#endif // CHROME_BROWSER_CONFIGURATION_POLICY_STORE_H_
+
« 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