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

Side by Side Diff: chrome/browser/policy/config_dir_policy_provider.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_CONFIG_DIR_POLICY_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_POLICY_CONFIG_DIR_POLICY_PROVIDER_H_
6 #define CHROME_BROWSER_POLICY_CONFIG_DIR_POLICY_PROVIDER_H_ 6 #define CHROME_BROWSER_POLICY_CONFIG_DIR_POLICY_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "chrome/browser/policy/file_based_policy_provider.h" 10 #include "chrome/browser/policy/file_based_policy_provider.h"
11 #include "chrome/browser/policy/policy_map.h"
12 11
13 class FilePath; 12 class FilePath;
14 13
15 namespace policy { 14 namespace policy {
16 15
17 // Policy provider backed by JSON files in a configuration directory. 16 // Policy provider backed by JSON files in a configuration directory.
18 class ConfigDirPolicyProvider : public FileBasedPolicyProvider { 17 class ConfigDirPolicyProvider : public FileBasedPolicyProvider {
19 public: 18 public:
20 ConfigDirPolicyProvider(const PolicyDefinitionList* policy_list, 19 ConfigDirPolicyProvider(const PolicyDefinitionList* policy_list,
21 PolicyLevel level, 20 PolicyLevel level,
(...skipping 10 matching lines...) Expand all
32 // interface. The files are consulted in lexicographic file name order, so the 31 // interface. The files are consulted in lexicographic file name order, so the
33 // last value read takes precedence in case of preference key collisions. 32 // last value read takes precedence in case of preference key collisions.
34 class ConfigDirPolicyProviderDelegate 33 class ConfigDirPolicyProviderDelegate
35 : public FileBasedPolicyProvider::ProviderDelegate { 34 : public FileBasedPolicyProvider::ProviderDelegate {
36 public: 35 public:
37 ConfigDirPolicyProviderDelegate(const FilePath& config_dir, 36 ConfigDirPolicyProviderDelegate(const FilePath& config_dir,
38 PolicyLevel level, 37 PolicyLevel level,
39 PolicyScope scope); 38 PolicyScope scope);
40 39
41 // FileBasedPolicyProvider::ProviderDelegate implementation. 40 // FileBasedPolicyProvider::ProviderDelegate implementation.
42 virtual PolicyMap* Load() OVERRIDE; 41 virtual scoped_ptr<PolicyBundle> Load() OVERRIDE;
43 virtual base::Time GetLastModification() OVERRIDE; 42 virtual base::Time GetLastModification() OVERRIDE;
44 43
45 private: 44 private:
46 // Policies loaded by this provider will have these attributes. 45 // Policies loaded by this provider will have these attributes.
47 PolicyLevel level_; 46 PolicyLevel level_;
48 PolicyScope scope_; 47 PolicyScope scope_;
49 48
50 DISALLOW_COPY_AND_ASSIGN(ConfigDirPolicyProviderDelegate); 49 DISALLOW_COPY_AND_ASSIGN(ConfigDirPolicyProviderDelegate);
51 }; 50 };
52 51
53 } // namespace policy 52 } // namespace policy
54 53
55 #endif // CHROME_BROWSER_POLICY_CONFIG_DIR_POLICY_PROVIDER_H_ 54 #endif // CHROME_BROWSER_POLICY_CONFIG_DIR_POLICY_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/cloud_policy_provider_unittest.cc ('k') | chrome/browser/policy/config_dir_policy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698