| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // Exposes the StopAutoRetry() method of the CloudPolicySubsystem managed | 64 // Exposes the StopAutoRetry() method of the CloudPolicySubsystem managed |
| 65 // by this connector, which can be used to disable automatic | 65 // by this connector, which can be used to disable automatic |
| 66 // retrying behavior. | 66 // retrying behavior. |
| 67 void StopAutoRetry(); | 67 void StopAutoRetry(); |
| 68 | 68 |
| 69 // Initiates a policy fetch after a successful device registration. | 69 // Initiates a policy fetch after a successful device registration. |
| 70 void FetchPolicy(); | 70 void FetchPolicy(); |
| 71 | 71 |
| 72 // Schedules initialization of the policy backend service, if the service is | 72 // Schedules initialization of the policy backend service, if the service is |
| 73 // already constructed. | 73 // already constructed. |
| 74 void ScheduleServiceInitialization(int delay_milliseconds); | 74 void ScheduleServiceInitialization(int64 delay_milliseconds); |
| 75 | 75 |
| 76 private: | 76 private: |
| 77 friend class ::TestingBrowserProcess; | 77 friend class ::TestingBrowserProcess; |
| 78 | 78 |
| 79 BrowserPolicyConnector(); | 79 BrowserPolicyConnector(); |
| 80 | 80 |
| 81 static ConfigurationPolicyProvider* CreateManagedPlatformProvider(); | 81 static ConfigurationPolicyProvider* CreateManagedPlatformProvider(); |
| 82 static ConfigurationPolicyProvider* CreateRecommendedPlatformProvider(); | 82 static ConfigurationPolicyProvider* CreateRecommendedPlatformProvider(); |
| 83 | 83 |
| 84 // Constructor for tests that allows tests to use fake platform policy | 84 // Constructor for tests that allows tests to use fake platform policy |
| (...skipping 15 matching lines...) Expand all Loading... |
| 100 scoped_ptr<CloudPolicySubsystem> cloud_policy_subsystem_; | 100 scoped_ptr<CloudPolicySubsystem> cloud_policy_subsystem_; |
| 101 | 101 |
| 102 ScopedRunnableMethodFactory<BrowserPolicyConnector> method_factory_; | 102 ScopedRunnableMethodFactory<BrowserPolicyConnector> method_factory_; |
| 103 | 103 |
| 104 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); | 104 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 } // namespace policy | 107 } // namespace policy |
| 108 | 108 |
| 109 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ | 109 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ |
| OLD | NEW |