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

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

Issue 10384145: Removed ConfigurationPolicyProvider::Provide(). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased Created 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 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 <CoreFoundation/CoreFoundation.h> 9 #include <CoreFoundation/CoreFoundation.h>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/policy/file_based_policy_provider.h" 12 #include "chrome/browser/policy/file_based_policy_provider.h"
13 #include "chrome/browser/policy/policy_map.h"
14 13
15 class MacPreferences; 14 class MacPreferences;
16 15
17 namespace base { 16 namespace base {
18 class Value; 17 class Value;
19 } 18 }
20 19
21 namespace policy { 20 namespace policy {
22 21
23 // A provider delegate implementation that reads Mac OS X's managed preferences. 22 // A provider delegate implementation that reads Mac OS X's managed preferences.
24 class MacPreferencesPolicyProviderDelegate 23 class MacPreferencesPolicyProviderDelegate
25 : public FileBasedPolicyProvider::ProviderDelegate { 24 : public FileBasedPolicyProvider::ProviderDelegate {
26 public: 25 public:
27 // Takes ownership of |preferences|. 26 // Takes ownership of |preferences|.
28 MacPreferencesPolicyProviderDelegate( 27 MacPreferencesPolicyProviderDelegate(
29 MacPreferences* preferences, 28 MacPreferences* preferences,
30 const PolicyDefinitionList* policy_list, 29 const PolicyDefinitionList* policy_list,
31 PolicyLevel level); 30 PolicyLevel level);
32 virtual ~MacPreferencesPolicyProviderDelegate(); 31 virtual ~MacPreferencesPolicyProviderDelegate();
33 32
34 // FileBasedPolicyLoader::Delegate implementation. 33 // FileBasedPolicyLoader::Delegate implementation.
35 virtual PolicyMap* Load() OVERRIDE; 34 virtual scoped_ptr<PolicyBundle> Load() OVERRIDE;
36 virtual base::Time GetLastModification() OVERRIDE; 35 virtual base::Time GetLastModification() OVERRIDE;
37 36
38 // Converts a CFPropertyListRef to the equivalent base::Value. CFDictionary 37 // Converts a CFPropertyListRef to the equivalent base::Value. CFDictionary
39 // entries whose key is not a CFStringRef are ignored. 38 // entries whose key is not a CFStringRef are ignored.
40 // The returned value is owned by the caller. 39 // The returned value is owned by the caller.
41 // Returns NULL if an invalid CFType was found, such as CFDate or CFData. 40 // Returns NULL if an invalid CFType was found, such as CFDate or CFData.
42 static base::Value* CreateValueFromProperty(CFPropertyListRef property); 41 static base::Value* CreateValueFromProperty(CFPropertyListRef property);
43 42
44 private: 43 private:
45 // In order to access the application preferences API, the names and values of 44 // In order to access the application preferences API, the names and values of
(...skipping 25 matching lines...) Expand all
71 ConfigurationPolicyProviderMac(const PolicyDefinitionList* policy_list, 70 ConfigurationPolicyProviderMac(const PolicyDefinitionList* policy_list,
72 PolicyLevel level, 71 PolicyLevel level,
73 MacPreferences* preferences); 72 MacPreferences* preferences);
74 73
75 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyProviderMac); 74 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyProviderMac);
76 }; 75 };
77 76
78 } // namespace policy 77 } // namespace policy
79 78
80 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_MAC_H_ 79 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698