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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // outside ChromeOS). | 47 // outside ChromeOS). |
48 CloudPolicySubsystem* cloud_policy_subsystem() { | 48 CloudPolicySubsystem* cloud_policy_subsystem() { |
49 return cloud_policy_subsystem_.get(); | 49 return cloud_policy_subsystem_.get(); |
50 } | 50 } |
51 | 51 |
52 static void RegisterPrefs(PrefService* user_prefs); | 52 static void RegisterPrefs(PrefService* user_prefs); |
53 | 53 |
54 // Used to set the credentials stored in the identity strategy associated | 54 // Used to set the credentials stored in the identity strategy associated |
55 // with this policy connector. | 55 // with this policy connector. |
56 void SetCredentials(const std::string& owner_email, | 56 void SetCredentials(const std::string& owner_email, |
57 const std::string& gaia_token, | 57 const std::string& gaia_token); |
58 const std::string& machine_id); | |
59 | 58 |
60 // Returns true if this device is managed by an enterprise (as opposed to | 59 // Returns true if this device is managed by an enterprise (as opposed to |
61 // a local owner). | 60 // a local owner). |
62 bool IsEnterpriseManaged(); | 61 bool IsEnterpriseManaged(); |
63 | 62 |
64 // Exposes the StopAutoRetry() method of the CloudPolicySubsystem managed | 63 // Exposes the StopAutoRetry() method of the CloudPolicySubsystem managed |
65 // by this connector, which can be used to disable automatic | 64 // by this connector, which can be used to disable automatic |
66 // retrying behavior. | 65 // retrying behavior. |
67 void StopAutoRetry(); | 66 void StopAutoRetry(); |
68 | 67 |
(...skipping 28 matching lines...) Expand all Loading... |
97 scoped_ptr<CloudPolicySubsystem> cloud_policy_subsystem_; | 96 scoped_ptr<CloudPolicySubsystem> cloud_policy_subsystem_; |
98 | 97 |
99 NotificationRegistrar registrar_; | 98 NotificationRegistrar registrar_; |
100 | 99 |
101 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); | 100 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); |
102 }; | 101 }; |
103 | 102 |
104 } // namespace policy | 103 } // namespace policy |
105 | 104 |
106 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ | 105 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ |
OLD | NEW |