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

Unified Diff: chrome/browser/policy/configuration_policy_store_interface.h

Issue 3774003: Cleanup and style guideline conformance for policy implementation (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: fix windows build and tests Created 10 years, 1 month 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
Index: chrome/browser/policy/configuration_policy_store_interface.h
diff --git a/chrome/browser/policy/configuration_policy_store_interface.h b/chrome/browser/policy/configuration_policy_store_interface.h
new file mode 100644
index 0000000000000000000000000000000000000000..7bdcf74dd9d46cb6536d75fedcc2f3ed2204b6e8
--- /dev/null
+++ b/chrome/browser/policy/configuration_policy_store_interface.h
@@ -0,0 +1,83 @@
+// 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_POLICY_CONFIGURATION_POLICY_STORE_INTERFACE_H_
+#define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_INTERFACE_H_
+#pragma once
+
+#include "base/basictypes.h"
+
+class Value;
+
+namespace policy {
+
+enum ConfigurationPolicyType {
+ kPolicyHomePage,
+ kPolicyHomepageIsNewTabPage,
+ kPolicyRestoreOnStartup,
+ kPolicyURLsToRestoreOnStartup,
+ kPolicyDefaultSearchProviderEnabled,
+ kPolicyDefaultSearchProviderName,
+ kPolicyDefaultSearchProviderKeyword,
+ kPolicyDefaultSearchProviderSearchURL,
+ kPolicyDefaultSearchProviderSuggestURL,
+ kPolicyDefaultSearchProviderIconURL,
+ kPolicyDefaultSearchProviderEncodings,
+ kPolicyDisableSpdy,
+ kPolicyProxyServerMode,
+ kPolicyProxyServer,
+ kPolicyProxyPacUrl,
+ kPolicyProxyBypassList,
+ kPolicyAlternateErrorPagesEnabled,
+ kPolicySearchSuggestEnabled,
+ kPolicyDnsPrefetchingEnabled,
+ kPolicySafeBrowsingEnabled,
+ kPolicyMetricsReportingEnabled,
+ kPolicyPasswordManagerEnabled,
+ kPolicyPasswordManagerAllowShowPasswords,
+ kPolicyAutoFillEnabled,
+ kPolicySyncDisabled,
+ kPolicyApplicationLocale,
+ kPolicyExtensionInstallAllowList,
+ kPolicyExtensionInstallDenyList,
+ kPolicyShowHomeButton,
+ kPolicyDisabledPlugins,
+ kPolicyPrintingEnabled,
+ kPolicyChromeFrameRendererSettings,
+ kPolicyRenderInChromeFrameList,
+ kPolicyRenderInHostList,
+ kPolicyJavascriptEnabled,
+ kPolicySavingBrowserHistoryDisabled,
+ kPolicyDeveloperToolsDisabled,
+ kPolicyBlockThirdPartyCookies,
+ kPolicyExtensionInstallForceList,
+ kPolicyChromeOsLockOnIdleSuspend,
+};
+
+static const int kPolicyNoProxyServerMode = 0;
+static const int kPolicyAutoDetectProxyMode = 1;
+static const int kPolicyManuallyConfiguredProxyMode = 2;
+static const int kPolicyUseSystemProxyMode = 3;
+
+// An abstract super class for policy stores that provides a method that can be
+// called by a |ConfigurationPolicyProvider| to specify a policy.
+class ConfigurationPolicyStoreInterface {
+ public:
+ virtual ~ConfigurationPolicyStoreInterface() {}
+
+ // A |ConfigurationPolicyProvider| specifies 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(ConfigurationPolicyType policy, Value* value) = 0;
+
+ protected:
+ ConfigurationPolicyStoreInterface() {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyStoreInterface);
+};
+
+} // namespace policy
+
+#endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_INTERFACE_H_
« no previous file with comments | « chrome/browser/policy/configuration_policy_store.h ('k') | chrome/browser/policy/dummy_configuration_policy_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698