| 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_BROWSER_POLICY_CONNECTOR_H_ | 5 #ifndef CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ |
| 6 #define CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ | 6 #define CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 DeviceMode GetDeviceMode(); | 102 DeviceMode GetDeviceMode(); |
| 103 | 103 |
| 104 // Reset the device policy machinery. This stops any automatic retry behavior | 104 // Reset the device policy machinery. This stops any automatic retry behavior |
| 105 // and clears the error flags, so potential retries have a chance to succeed. | 105 // and clears the error flags, so potential retries have a chance to succeed. |
| 106 void ResetDevicePolicy(); | 106 void ResetDevicePolicy(); |
| 107 | 107 |
| 108 // Initiates device and user policy fetches, if possible. Pending fetches | 108 // Initiates device and user policy fetches, if possible. Pending fetches |
| 109 // will be cancelled. | 109 // will be cancelled. |
| 110 void FetchCloudPolicy(); | 110 void FetchCloudPolicy(); |
| 111 | 111 |
| 112 // Refreshes policies on each existing provider. | |
| 113 void RefreshPolicies(); | |
| 114 | |
| 115 // Schedules initialization of the cloud policy backend services, if the | 112 // Schedules initialization of the cloud policy backend services, if the |
| 116 // services are already constructed. | 113 // services are already constructed. |
| 117 void ScheduleServiceInitialization(int64 delay_milliseconds); | 114 void ScheduleServiceInitialization(int64 delay_milliseconds); |
| 118 | 115 |
| 119 // Initializes the user cloud policy infrastructure. | 116 // Initializes the user cloud policy infrastructure. |
| 120 // If |wait_for_policy_fetch| is true, the user policy will only become fully | 117 // If |wait_for_policy_fetch| is true, the user policy will only become fully |
| 121 // initialized after a policy fetch is attempted. Note that Profile creation | 118 // initialized after a policy fetch is attempted. Note that Profile creation |
| 122 // is blocked until this initialization is complete. | 119 // is blocked until this initialization is complete. |
| 123 void InitializeUserPolicy(const std::string& user_name, | 120 void InitializeUserPolicy(const std::string& user_name, |
| 124 bool wait_for_policy_fetch); | 121 bool wait_for_policy_fetch); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 #if defined(OS_CHROMEOS) | 193 #if defined(OS_CHROMEOS) |
| 197 scoped_ptr<AppPackUpdater> app_pack_updater_; | 194 scoped_ptr<AppPackUpdater> app_pack_updater_; |
| 198 #endif | 195 #endif |
| 199 | 196 |
| 200 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); | 197 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); |
| 201 }; | 198 }; |
| 202 | 199 |
| 203 } // namespace policy | 200 } // namespace policy |
| 204 | 201 |
| 205 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ | 202 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ |
| OLD | NEW |