blob: ab244738697807fa42eae764b89ef702cd2ee400 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// 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_PROVIDER_MAC_H_
#define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_MAC_H_
#pragma once
#include "base/scoped_ptr.h"
#include "chrome/browser/policy/configuration_policy_store.h"
#include "chrome/browser/policy/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_POLICY_CONFIGURATION_POLICY_PROVIDER_MAC_H_
|