OLD | NEW |
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_ASYNC_POLICY_LOADER_H_ | 5 #ifndef CHROME_BROWSER_POLICY_ASYNC_POLICY_LOADER_H_ |
6 #define CHROME_BROWSER_POLICY_ASYNC_POLICY_LOADER_H_ | 6 #define CHROME_BROWSER_POLICY_ASYNC_POLICY_LOADER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/time.h" | 14 #include "base/time/time.h" |
15 #include "chrome/browser/policy/policy_service.h" | 15 #include "chrome/browser/policy/policy_service.h" |
16 | 16 |
17 namespace policy { | 17 namespace policy { |
18 | 18 |
19 class PolicyBundle; | 19 class PolicyBundle; |
20 class PolicyDomainDescriptor; | 20 class PolicyDomainDescriptor; |
21 | 21 |
22 // Base implementation for platform-specific policy loaders. Together with the | 22 // Base implementation for platform-specific policy loaders. Together with the |
23 // AsyncPolicyProvider, this base implementation takes care of the initial load, | 23 // AsyncPolicyProvider, this base implementation takes care of the initial load, |
24 // periodic reloads, watching file changes, refreshing policies and object | 24 // periodic reloads, watching file changes, refreshing policies and object |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 // A map of the currently registered domains and their descriptors. | 112 // A map of the currently registered domains and their descriptors. |
113 DescriptorMap descriptor_map_; | 113 DescriptorMap descriptor_map_; |
114 | 114 |
115 DISALLOW_COPY_AND_ASSIGN(AsyncPolicyLoader); | 115 DISALLOW_COPY_AND_ASSIGN(AsyncPolicyLoader); |
116 }; | 116 }; |
117 | 117 |
118 } // namespace policy | 118 } // namespace policy |
119 | 119 |
120 #endif // CHROME_BROWSER_POLICY_ASYNC_POLICY_LOADER_H_ | 120 #endif // CHROME_BROWSER_POLICY_ASYNC_POLICY_LOADER_H_ |
OLD | NEW |