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