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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 EnterpriseInstallAttributes::LockResult LockDevice(const std::string& user); | 59 EnterpriseInstallAttributes::LockResult LockDevice(const std::string& user); |
60 | 60 |
61 // Returns the enterprise domain if device is managed. | 61 // Returns the enterprise domain if device is managed. |
62 std::string GetEnterpriseDomain(); | 62 std::string GetEnterpriseDomain(); |
63 | 63 |
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. |
| 70 void FetchPolicy(); |
| 71 |
69 private: | 72 private: |
70 friend class ::TestingBrowserProcess; | 73 friend class ::TestingBrowserProcess; |
71 | 74 |
72 static ConfigurationPolicyProvider* CreateManagedPlatformProvider(); | 75 static ConfigurationPolicyProvider* CreateManagedPlatformProvider(); |
73 static ConfigurationPolicyProvider* CreateRecommendedPlatformProvider(); | 76 static ConfigurationPolicyProvider* CreateRecommendedPlatformProvider(); |
74 | 77 |
75 // Constructor for tests that allows tests to use fake platform policy | 78 // Constructor for tests that allows tests to use fake platform policy |
76 // providers instead of using the actual ones. | 79 // providers instead of using the actual ones. |
77 BrowserPolicyConnector( | 80 BrowserPolicyConnector( |
78 ConfigurationPolicyProvider* managed_platform_provider, | 81 ConfigurationPolicyProvider* managed_platform_provider, |
(...skipping 12 matching lines...) Expand all Loading... |
91 scoped_ptr<CloudPolicySubsystem> cloud_policy_subsystem_; | 94 scoped_ptr<CloudPolicySubsystem> cloud_policy_subsystem_; |
92 | 95 |
93 ScopedRunnableMethodFactory<BrowserPolicyConnector> method_factory_; | 96 ScopedRunnableMethodFactory<BrowserPolicyConnector> method_factory_; |
94 | 97 |
95 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); | 98 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); |
96 }; | 99 }; |
97 | 100 |
98 } // namespace policy | 101 } // namespace policy |
99 | 102 |
100 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ | 103 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ |
OLD | NEW |