Chromium Code Reviews| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 55 | 55 |
| 56 // Returns a weak pointer to the CloudPolicySubsystem corresponding to the | 56 // Returns a weak pointer to the CloudPolicySubsystem corresponding to the |
| 57 // user policy managed by this policy connector, or NULL if no such | 57 // user policy managed by this policy connector, or NULL if no such |
| 58 // subsystem exists (i.e. when user cloud policy is not active due to | 58 // subsystem exists (i.e. when user cloud policy is not active due to |
| 59 // unmanaged or not logged in). | 59 // unmanaged or not logged in). |
| 60 CloudPolicySubsystem* user_cloud_policy_subsystem() { | 60 CloudPolicySubsystem* user_cloud_policy_subsystem() { |
| 61 return user_cloud_policy_subsystem_.get(); | 61 return user_cloud_policy_subsystem_.get(); |
| 62 } | 62 } |
| 63 | 63 |
| 64 // Used to set the credentials stored in the data store associated | 64 // Used to set the credentials stored in the data store associated |
| 65 // with this policy connector. | 65 // with this policy connector. |
|
whywhat
2011/08/03 17:48:03
Should the comment be updated about agreement on t
Mattias Nissler (ping if slow)
2011/08/04 09:58:59
Done.
| |
| 66 void SetDeviceCredentials(const std::string& owner_email, | 66 void SetDeviceCredentials(const std::string& owner_email, |
| 67 const std::string& gaia_token); | 67 const std::string& gaia_token, |
| 68 const std::string& oauth_token); | |
| 68 | 69 |
| 69 // Returns true if this device is managed by an enterprise (as opposed to | 70 // Returns true if this device is managed by an enterprise (as opposed to |
| 70 // a local owner). | 71 // a local owner). |
| 71 bool IsEnterpriseManaged(); | 72 bool IsEnterpriseManaged(); |
| 72 | 73 |
| 73 // Locks the device to an enterprise domain. | 74 // Locks the device to an enterprise domain. |
| 74 EnterpriseInstallAttributes::LockResult LockDevice(const std::string& user); | 75 EnterpriseInstallAttributes::LockResult LockDevice(const std::string& user); |
| 75 | 76 |
| 76 // Returns the enterprise domain if device is managed. | 77 // Returns the enterprise domain if device is managed. |
| 77 std::string GetEnterpriseDomain(); | 78 std::string GetEnterpriseDomain(); |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 157 // Weak reference to the TokenService we are listening to for user cloud | 158 // Weak reference to the TokenService we are listening to for user cloud |
| 158 // policy authentication tokens. | 159 // policy authentication tokens. |
| 159 TokenService* token_service_; | 160 TokenService* token_service_; |
| 160 | 161 |
| 161 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); | 162 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); |
| 162 }; | 163 }; |
| 163 | 164 |
| 164 } // namespace policy | 165 } // namespace policy |
| 165 | 166 |
| 166 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ | 167 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ |
| OLD | NEW |