| 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_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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 // Constructor for tests that allows tests to use fake platform and cloud | 109 // Constructor for tests that allows tests to use fake platform and cloud |
| 110 // policy providers instead of using the actual ones. | 110 // policy providers instead of using the actual ones. |
| 111 BrowserPolicyConnector( | 111 BrowserPolicyConnector( |
| 112 ConfigurationPolicyProvider* managed_platform_provider, | 112 ConfigurationPolicyProvider* managed_platform_provider, |
| 113 ConfigurationPolicyProvider* recommended_platform_provider, | 113 ConfigurationPolicyProvider* recommended_platform_provider, |
| 114 CloudPolicyProvider* managed_cloud_provider, | 114 CloudPolicyProvider* managed_cloud_provider, |
| 115 CloudPolicyProvider* recommended_cloud_provider); | 115 CloudPolicyProvider* recommended_cloud_provider); |
| 116 | 116 |
| 117 // NotificationObserver method overrides: | 117 // NotificationObserver method overrides: |
| 118 virtual void Observe(NotificationType type, | 118 virtual void Observe(int type, |
| 119 const NotificationSource& source, | 119 const NotificationSource& source, |
| 120 const NotificationDetails& details) OVERRIDE; | 120 const NotificationDetails& details) OVERRIDE; |
| 121 | 121 |
| 122 // Initializes the device cloud policy infrasturcture. | 122 // Initializes the device cloud policy infrasturcture. |
| 123 void InitializeDevicePolicy(); | 123 void InitializeDevicePolicy(); |
| 124 | 124 |
| 125 // Activates the device cloud policy subsystem. This will be posted as a task | 125 // Activates the device cloud policy subsystem. This will be posted as a task |
| 126 // from InitializeDevicePolicy since it needs to wait for the message loops to | 126 // from InitializeDevicePolicy since it needs to wait for the message loops to |
| 127 // be running. | 127 // be running. |
| 128 void InitializeDevicePolicySubsystem(); | 128 void InitializeDevicePolicySubsystem(); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 150 // Weak reference to the TokenService we are listening to for user cloud | 150 // Weak reference to the TokenService we are listening to for user cloud |
| 151 // policy authentication tokens. | 151 // policy authentication tokens. |
| 152 TokenService* token_service_; | 152 TokenService* token_service_; |
| 153 | 153 |
| 154 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); | 154 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); |
| 155 }; | 155 }; |
| 156 | 156 |
| 157 } // namespace policy | 157 } // namespace policy |
| 158 | 158 |
| 159 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ | 159 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ |
| OLD | NEW |