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_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_SERVICE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_SERVICE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_SERVICE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
19 #include "base/observer_list.h" | 19 #include "base/observer_list.h" |
20 #include "chrome/browser/chromeos/extensions/device_local_account_external_polic
y_loader.h" | 20 #include "chrome/browser/chromeos/extensions/device_local_account_external_polic
y_loader.h" |
| 21 #include "chrome/browser/chromeos/policy/device_local_account_extension_tracker.
h" |
21 #include "chrome/browser/chromeos/policy/device_local_account_external_data_mana
ger.h" | 22 #include "chrome/browser/chromeos/policy/device_local_account_external_data_mana
ger.h" |
22 #include "chrome/browser/chromeos/settings/cros_settings.h" | 23 #include "chrome/browser/chromeos/settings/cros_settings.h" |
23 #include "components/policy/core/common/cloud/cloud_policy_core.h" | 24 #include "components/policy/core/common/cloud/cloud_policy_core.h" |
24 #include "components/policy/core/common/cloud/cloud_policy_store.h" | 25 #include "components/policy/core/common/cloud/cloud_policy_store.h" |
25 #include "components/policy/core/common/cloud/component_cloud_policy_service.h" | 26 #include "components/policy/core/common/cloud/component_cloud_policy_service.h" |
26 #include "components/policy/core/common/schema_registry.h" | 27 #include "components/policy/core/common/schema_registry.h" |
27 | 28 |
28 namespace base { | 29 namespace base { |
29 class SequencedTaskRunner; | 30 class SequencedTaskRunner; |
30 } | 31 } |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 112 |
112 private: | 113 private: |
113 void CreateComponentCloudPolicyService( | 114 void CreateComponentCloudPolicyService( |
114 const scoped_refptr<net::URLRequestContextGetter>& request_context); | 115 const scoped_refptr<net::URLRequestContextGetter>& request_context); |
115 | 116 |
116 const std::string account_id_; | 117 const std::string account_id_; |
117 const std::string user_id_; | 118 const std::string user_id_; |
118 const base::FilePath component_policy_cache_path_; | 119 const base::FilePath component_policy_cache_path_; |
119 SchemaRegistry schema_registry_; | 120 SchemaRegistry schema_registry_; |
120 const scoped_ptr<DeviceLocalAccountPolicyStore> store_; | 121 const scoped_ptr<DeviceLocalAccountPolicyStore> store_; |
| 122 DeviceLocalAccountExtensionTracker extension_tracker_; |
121 scoped_refptr<DeviceLocalAccountExternalDataManager> external_data_manager_; | 123 scoped_refptr<DeviceLocalAccountExternalDataManager> external_data_manager_; |
122 scoped_refptr<chromeos::DeviceLocalAccountExternalPolicyLoader> | 124 scoped_refptr<chromeos::DeviceLocalAccountExternalPolicyLoader> |
123 extension_loader_; | 125 extension_loader_; |
124 CloudPolicyCore core_; | 126 CloudPolicyCore core_; |
125 scoped_ptr<ComponentCloudPolicyService> component_policy_service_; | 127 scoped_ptr<ComponentCloudPolicyService> component_policy_service_; |
126 base::Closure policy_update_callback_; | 128 base::Closure policy_update_callback_; |
127 | 129 |
128 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountPolicyBroker); | 130 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountPolicyBroker); |
129 }; | 131 }; |
130 | 132 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 base::FilePath component_policy_cache_root_; | 265 base::FilePath component_policy_cache_root_; |
264 | 266 |
265 base::WeakPtrFactory<DeviceLocalAccountPolicyService> weak_factory_; | 267 base::WeakPtrFactory<DeviceLocalAccountPolicyService> weak_factory_; |
266 | 268 |
267 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountPolicyService); | 269 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountPolicyService); |
268 }; | 270 }; |
269 | 271 |
270 } // namespace policy | 272 } // namespace policy |
271 | 273 |
272 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_SERVICE_H_ | 274 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_SERVICE_H_ |
OLD | NEW |