summaryrefslogtreecommitdiffstats
path: root/chrome/browser/configuration_policy_provider_mac.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/configuration_policy_provider_mac.h')
-rw-r--r--chrome/browser/configuration_policy_provider_mac.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/chrome/browser/configuration_policy_provider_mac.h b/chrome/browser/configuration_policy_provider_mac.h
new file mode 100644
index 0000000..1cb67a1
--- /dev/null
+++ b/chrome/browser/configuration_policy_provider_mac.h
@@ -0,0 +1,30 @@
+// 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_PROVIDER_MAC_H_
+#define CHROME_BROWSER_CONFIGURATION_POLICY_PROVIDER_MAC_H_
+
+#include "base/scoped_ptr.h"
+#include "chrome/browser/configuration_policy_store.h"
+#include "chrome/browser/configuration_policy_provider.h"
+#include "chrome/browser/preferences_mac.h"
+
+// An implementation of |ConfigurationPolicyProvider| using the mechanism
+// provided by Mac OS X's managed preferences.
+class ConfigurationPolicyProviderMac : public ConfigurationPolicyProvider {
+ public:
+ ConfigurationPolicyProviderMac();
+ // For testing; takes ownership of |preferences|.
+ explicit ConfigurationPolicyProviderMac(MacPreferences* preferences);
+ virtual ~ConfigurationPolicyProviderMac() { }
+
+ // ConfigurationPolicyProvider method overrides:
+ virtual bool Provide(ConfigurationPolicyStore* store);
+
+ protected:
+ scoped_ptr<MacPreferences> preferences_;
+};
+
+#endif // CHROME_BROWSER_CONFIGURATION_POLICY_PROVIDER_MAC_H_
+