| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 CloudPolicySubsystem* user_cloud_policy_subsystem() { | 71 CloudPolicySubsystem* user_cloud_policy_subsystem() { |
| 72 return user_cloud_policy_subsystem_.get(); | 72 return user_cloud_policy_subsystem_.get(); |
| 73 } | 73 } |
| 74 | 74 |
| 75 // Triggers registration for device policy, using the |owner_email| account. | 75 // Triggers registration for device policy, using the |owner_email| account. |
| 76 // |token| is an oauth token to authenticate the registration request, and | 76 // |token| is an oauth token to authenticate the registration request, and |
| 77 // |known_machine_id| is true if the server should do additional checks based | 77 // |known_machine_id| is true if the server should do additional checks based |
| 78 // on the machine_id used for the request. | 78 // on the machine_id used for the request. |
| 79 void RegisterForDevicePolicy(const std::string& owner_email, | 79 void RegisterForDevicePolicy(const std::string& owner_email, |
| 80 const std::string& token, | 80 const std::string& token, |
| 81 bool known_machine_id); | 81 bool known_machine_id, |
| 82 bool reregister); |
| 82 | 83 |
| 83 // Returns true if this device is managed by an enterprise (as opposed to | 84 // Returns true if this device is managed by an enterprise (as opposed to |
| 84 // a local owner). | 85 // a local owner). |
| 85 bool IsEnterpriseManaged(); | 86 bool IsEnterpriseManaged(); |
| 86 | 87 |
| 87 // Locks the device to an enterprise domain. | 88 // Locks the device to an enterprise domain. |
| 88 EnterpriseInstallAttributes::LockResult LockDevice(const std::string& user); | 89 EnterpriseInstallAttributes::LockResult LockDevice(const std::string& user); |
| 89 | 90 |
| 90 // Returns the device serial number, or an empty string if not available. | 91 // Returns the device serial number, or an empty string if not available. |
| 91 static std::string GetSerialNumber(); | 92 static std::string GetSerialNumber(); |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 #if defined(OS_CHROMEOS) | 199 #if defined(OS_CHROMEOS) |
| 199 scoped_ptr<AppPackUpdater> app_pack_updater_; | 200 scoped_ptr<AppPackUpdater> app_pack_updater_; |
| 200 #endif | 201 #endif |
| 201 | 202 |
| 202 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); | 203 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); |
| 203 }; | 204 }; |
| 204 | 205 |
| 205 } // namespace policy | 206 } // namespace policy |
| 206 | 207 |
| 207 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ | 208 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ |
| OLD | NEW |