| 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_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 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/prefs/public/pref_change_registrar.h" | 9 #include "base/prefs/public/pref_change_registrar.h" |
| 10 #include "net/base/network_change_notifier.h" | 10 #include "net/base/network_change_notifier.h" |
| 11 | 11 |
| 12 class PrefService; | 12 class PrefServiceSimple; |
| 13 | 13 |
| 14 namespace policy { | 14 namespace policy { |
| 15 | 15 |
| 16 class CloudPolicyCacheBase; | 16 class CloudPolicyCacheBase; |
| 17 class CloudPolicyController; | 17 class CloudPolicyController; |
| 18 class CloudPolicyDataStore; | 18 class CloudPolicyDataStore; |
| 19 class DeviceManagementService; | 19 class DeviceManagementService; |
| 20 class DeviceTokenFetcher; | 20 class DeviceTokenFetcher; |
| 21 class PolicyNotifier; | 21 class PolicyNotifier; |
| 22 | 22 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 93 |
| 94 // Refreshes the policies retrieved by this subsystem. This triggers new | 94 // Refreshes the policies retrieved by this subsystem. This triggers new |
| 95 // policy fetches if possible, otherwise it keeps the current set of policies. | 95 // policy fetches if possible, otherwise it keeps the current set of policies. |
| 96 // If |wait_for_auth_token| is true, then this call will make the policy | 96 // If |wait_for_auth_token| is true, then this call will make the policy |
| 97 // refresh wait for a pending auth token fetch, in case it hasn't finished | 97 // refresh wait for a pending auth token fetch, in case it hasn't finished |
| 98 // yet. Otherwise the refresh completes immediately if the auth token isn't | 98 // yet. Otherwise the refresh completes immediately if the auth token isn't |
| 99 // available. | 99 // available. |
| 100 void RefreshPolicies(bool wait_for_auth_token); | 100 void RefreshPolicies(bool wait_for_auth_token); |
| 101 | 101 |
| 102 // Registers cloud policy related prefs. | 102 // Registers cloud policy related prefs. |
| 103 static void RegisterPrefs(PrefService* pref_service); | 103 static void RegisterPrefs(PrefServiceSimple* pref_service); |
| 104 | 104 |
| 105 // Schedule initialization of the policy backend service. | 105 // Schedule initialization of the policy backend service. |
| 106 void ScheduleServiceInitialization(int64 delay_milliseconds); | 106 void ScheduleServiceInitialization(int64 delay_milliseconds); |
| 107 | 107 |
| 108 // Returns the CloudPolicyCacheBase associated with this CloudPolicySubsystem. | 108 // Returns the CloudPolicyCacheBase associated with this CloudPolicySubsystem. |
| 109 CloudPolicyCacheBase* GetCloudPolicyCacheBase() const; | 109 CloudPolicyCacheBase* GetCloudPolicyCacheBase() const; |
| 110 | 110 |
| 111 CloudPolicyDataStore* data_store() { return data_store_; } | 111 CloudPolicyDataStore* data_store() { return data_store_; } |
| 112 | 112 |
| 113 private: | 113 private: |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 scoped_ptr<CloudPolicyController> cloud_policy_controller_; | 151 scoped_ptr<CloudPolicyController> cloud_policy_controller_; |
| 152 | 152 |
| 153 std::string device_management_url_; | 153 std::string device_management_url_; |
| 154 | 154 |
| 155 DISALLOW_COPY_AND_ASSIGN(CloudPolicySubsystem); | 155 DISALLOW_COPY_AND_ASSIGN(CloudPolicySubsystem); |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 } // namespace policy | 158 } // namespace policy |
| 159 | 159 |
| 160 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ | 160 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ |
| OLD | NEW |