OLD | NEW |
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 COMPONENTS_POLICY_CORE_COMMON_ASYNC_POLICY_LOADER_H_ | 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_ASYNC_POLICY_LOADER_H_ |
6 #define COMPONENTS_POLICY_CORE_COMMON_ASYNC_POLICY_LOADER_H_ | 6 #define COMPONENTS_POLICY_CORE_COMMON_ASYNC_POLICY_LOADER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
11 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
12 #include "base/time/time.h" | 13 #include "base/time/time.h" |
13 #include "components/policy/core/common/schema_map.h" | 14 #include "components/policy/core/common/schema_map.h" |
14 #include "components/policy/policy_export.h" | 15 #include "components/policy/policy_export.h" |
15 | 16 |
16 namespace base { | 17 namespace base { |
17 class SequencedTaskRunner; | 18 class SequencedTaskRunner; |
18 } | 19 } |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 114 |
114 // Used to get WeakPtrs for the periodic reload task. | 115 // Used to get WeakPtrs for the periodic reload task. |
115 base::WeakPtrFactory<AsyncPolicyLoader> weak_factory_; | 116 base::WeakPtrFactory<AsyncPolicyLoader> weak_factory_; |
116 | 117 |
117 DISALLOW_COPY_AND_ASSIGN(AsyncPolicyLoader); | 118 DISALLOW_COPY_AND_ASSIGN(AsyncPolicyLoader); |
118 }; | 119 }; |
119 | 120 |
120 } // namespace policy | 121 } // namespace policy |
121 | 122 |
122 #endif // COMPONENTS_POLICY_CORE_COMMON_ASYNC_POLICY_LOADER_H_ | 123 #endif // COMPONENTS_POLICY_CORE_COMMON_ASYNC_POLICY_LOADER_H_ |
OLD | NEW |