| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CLOUD_POLICY_SUBSYSTEM_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ |
| 6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ | 6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/prefs/pref_change_registrar.h" | 10 #include "chrome/browser/prefs/pref_change_registrar.h" |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // Returns a weak pointer to this subsystem's PolicyNotifier. | 113 // Returns a weak pointer to this subsystem's PolicyNotifier. |
| 114 PolicyNotifier* notifier() { | 114 PolicyNotifier* notifier() { |
| 115 return notifier_.get(); | 115 return notifier_.get(); |
| 116 } | 116 } |
| 117 | 117 |
| 118 // Factory methods that may be overridden in tests. | 118 // Factory methods that may be overridden in tests. |
| 119 virtual void CreateDeviceTokenFetcher(); | 119 virtual void CreateDeviceTokenFetcher(); |
| 120 virtual void CreateCloudPolicyController(); | 120 virtual void CreateCloudPolicyController(); |
| 121 | 121 |
| 122 // NotificationObserver overrides. | 122 // NotificationObserver overrides. |
| 123 virtual void Observe(NotificationType type, | 123 virtual void Observe(int type, |
| 124 const NotificationSource& source, | 124 const NotificationSource& source, |
| 125 const NotificationDetails& details); | 125 const NotificationDetails& details); |
| 126 | 126 |
| 127 // Name of the preference to read the refresh rate from. | 127 // Name of the preference to read the refresh rate from. |
| 128 const char* refresh_pref_name_; | 128 const char* refresh_pref_name_; |
| 129 | 129 |
| 130 PrefChangeRegistrar pref_change_registrar_; | 130 PrefChangeRegistrar pref_change_registrar_; |
| 131 | 131 |
| 132 CloudPolicyDataStore* data_store_; | 132 CloudPolicyDataStore* data_store_; |
| 133 | 133 |
| 134 // Cloud policy infrastructure stuff. | 134 // Cloud policy infrastructure stuff. |
| 135 scoped_ptr<PolicyNotifier> notifier_; | 135 scoped_ptr<PolicyNotifier> notifier_; |
| 136 scoped_ptr<DeviceManagementService> device_management_service_; | 136 scoped_ptr<DeviceManagementService> device_management_service_; |
| 137 scoped_ptr<DeviceTokenFetcher> device_token_fetcher_; | 137 scoped_ptr<DeviceTokenFetcher> device_token_fetcher_; |
| 138 scoped_ptr<CloudPolicyCacheBase> cloud_policy_cache_; | 138 scoped_ptr<CloudPolicyCacheBase> cloud_policy_cache_; |
| 139 scoped_ptr<CloudPolicyController> cloud_policy_controller_; | 139 scoped_ptr<CloudPolicyController> cloud_policy_controller_; |
| 140 | 140 |
| 141 std::string device_management_url_; | 141 std::string device_management_url_; |
| 142 | 142 |
| 143 DISALLOW_COPY_AND_ASSIGN(CloudPolicySubsystem); | 143 DISALLOW_COPY_AND_ASSIGN(CloudPolicySubsystem); |
| 144 }; | 144 }; |
| 145 | 145 |
| 146 } // namespace policy | 146 } // namespace policy |
| 147 | 147 |
| 148 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ | 148 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ |
| OLD | NEW |