| 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_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 // TODO(davidyu): Move these two functions to a more appropriate place. See | 49 // TODO(davidyu): Move these two functions to a more appropriate place. See |
| 50 // http://crbug.com/383695. | 50 // http://crbug.com/383695. |
| 51 // Gets/Sets the device requisition. | 51 // Gets/Sets the device requisition. |
| 52 std::string GetDeviceRequisition() const; | 52 std::string GetDeviceRequisition() const; |
| 53 void SetDeviceRequisition(const std::string& requisition); | 53 void SetDeviceRequisition(const std::string& requisition); |
| 54 bool IsRemoraRequisition() const; | 54 bool IsRemoraRequisition() const; |
| 55 bool IsSharkRequisition() const; | 55 bool IsSharkRequisition() const; |
| 56 | 56 |
| 57 // CloudPolicyManager: | 57 // CloudPolicyManager: |
| 58 virtual void Shutdown() OVERRIDE; | 58 virtual void Shutdown() override; |
| 59 | 59 |
| 60 // Pref registration helper. | 60 // Pref registration helper. |
| 61 static void RegisterPrefs(PrefRegistrySimple* registry); | 61 static void RegisterPrefs(PrefRegistrySimple* registry); |
| 62 | 62 |
| 63 // Returns the device serial number, or an empty string if not available. | 63 // Returns the device serial number, or an empty string if not available. |
| 64 static std::string GetMachineID(); | 64 static std::string GetMachineID(); |
| 65 | 65 |
| 66 // Returns the machine model, or an empty string if not available. | 66 // Returns the machine model, or an empty string if not available. |
| 67 static std::string GetMachineModel(); | 67 static std::string GetMachineModel(); |
| 68 | 68 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // CloudPolicyClient is in use. We should have CPC take over the | 104 // CloudPolicyClient is in use. We should have CPC take over the |
| 105 // ownership of this object instead. See http://crbug.com/383696. | 105 // ownership of this object instead. See http://crbug.com/383696. |
| 106 scoped_ptr<CloudPolicyClient::StatusProvider> device_status_provider_; | 106 scoped_ptr<CloudPolicyClient::StatusProvider> device_status_provider_; |
| 107 | 107 |
| 108 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); | 108 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 } // namespace policy | 111 } // namespace policy |
| 112 | 112 |
| 113 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H
_ | 113 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H
_ |
| OLD | NEW |