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

Side by Side Diff: components/policy/core/common/configuration_policy_provider.h

Issue 101163003: Move ConfigurationPolicyProvider to components/policy/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename target Created 7 years 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
« no previous file with comments | « components/policy.gypi ('k') | components/policy/core/common/configuration_policy_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_H_ 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_CONFIGURATION_POLICY_PROVIDER_H_
6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_H_ 6 #define COMPONENTS_POLICY_CORE_COMMON_CONFIGURATION_POLICY_PROVIDER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/observer_list.h" 11 #include "base/observer_list.h"
12 #include "components/policy/core/common/policy_bundle.h" 12 #include "components/policy/core/common/policy_bundle.h"
13 #include "components/policy/core/common/policy_namespace.h" 13 #include "components/policy/core/common/policy_namespace.h"
14 #include "components/policy/core/common/schema_registry.h" 14 #include "components/policy/core/common/schema_registry.h"
15 #include "components/policy/policy_export.h"
15 16
16 namespace policy { 17 namespace policy {
17 18
18 // A mostly-abstract super class for platform-specific policy providers. 19 // A mostly-abstract super class for platform-specific policy providers.
19 // Platform-specific policy providers (Windows Group Policy, gconf, 20 // Platform-specific policy providers (Windows Group Policy, gconf,
20 // etc.) should implement a subclass of this class. 21 // etc.) should implement a subclass of this class.
21 class ConfigurationPolicyProvider : public SchemaRegistry::Observer { 22 class POLICY_EXPORT ConfigurationPolicyProvider
23 : public SchemaRegistry::Observer {
22 public: 24 public:
23 class Observer { 25 class POLICY_EXPORT Observer {
24 public: 26 public:
25 virtual ~Observer(); 27 virtual ~Observer();
26 virtual void OnUpdatePolicy(ConfigurationPolicyProvider* provider) = 0; 28 virtual void OnUpdatePolicy(ConfigurationPolicyProvider* provider) = 0;
27 }; 29 };
28 30
29 ConfigurationPolicyProvider(); 31 ConfigurationPolicyProvider();
30 32
31 // Policy providers can be deleted quite late during shutdown of the browser, 33 // Policy providers can be deleted quite late during shutdown of the browser,
32 // and it's not guaranteed that the message loops will still be running when 34 // and it's not guaranteed that the message loops will still be running when
33 // this is invoked. Override Shutdown() instead for cleanup code that needs 35 // this is invoked. Override Shutdown() instead for cleanup code that needs
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 93
92 SchemaRegistry* schema_registry_; 94 SchemaRegistry* schema_registry_;
93 95
94 ObserverList<Observer, true> observer_list_; 96 ObserverList<Observer, true> observer_list_;
95 97
96 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyProvider); 98 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyProvider);
97 }; 99 };
98 100
99 } // namespace policy 101 } // namespace policy
100 102
101 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_H_ 103 #endif // COMPONENTS_POLICY_CORE_COMMON_CONFIGURATION_POLICY_PROVIDER_H_
OLDNEW
« no previous file with comments | « components/policy.gypi ('k') | components/policy/core/common/configuration_policy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698