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

Side by Side Diff: chrome/browser/policy/configuration_policy_provider_mac.h

Issue 9111022: Removed ConfigurationPolicyType and extended PolicyMap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_MAC_H_ 5 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_MAC_H_
6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_MAC_H_ 6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/policy/file_based_policy_provider.h" 10 #include "chrome/browser/policy/file_based_policy_provider.h"
11 11
(...skipping 25 matching lines...) Expand all
37 37
38 scoped_ptr<MacPreferences> preferences_; 38 scoped_ptr<MacPreferences> preferences_;
39 39
40 DISALLOW_COPY_AND_ASSIGN(MacPreferencesPolicyProviderDelegate); 40 DISALLOW_COPY_AND_ASSIGN(MacPreferencesPolicyProviderDelegate);
41 }; 41 };
42 42
43 // An implementation of |ConfigurationPolicyProvider| using the mechanism 43 // An implementation of |ConfigurationPolicyProvider| using the mechanism
44 // provided by Mac OS X's managed preferences. 44 // provided by Mac OS X's managed preferences.
45 class ConfigurationPolicyProviderMac : public FileBasedPolicyProvider { 45 class ConfigurationPolicyProviderMac : public FileBasedPolicyProvider {
46 public: 46 public:
47 explicit ConfigurationPolicyProviderMac( 47 ConfigurationPolicyProviderMac(const PolicyDefinitionList* policy_list,
48 const PolicyDefinitionList* policy_list); 48 PolicyLevel level);
49 // For testing; takes ownership of |preferences|. 49 // For testing; takes ownership of |preferences|.
50 ConfigurationPolicyProviderMac(const PolicyDefinitionList* policy_list, 50 ConfigurationPolicyProviderMac(const PolicyDefinitionList* policy_list,
51 PolicyLevel level,
51 MacPreferences* preferences); 52 MacPreferences* preferences);
52 53
53 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyProviderMac); 54 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyProviderMac);
54 }; 55 };
55 56
56 } // namespace policy 57 } // namespace policy
57 58
58 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_MAC_H_ 59 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/configuration_policy_provider.cc ('k') | chrome/browser/policy/configuration_policy_provider_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698