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_CLOUD_POLICY_IDENTITY_STRATEGY_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_POLICY_IDENTITY_STRATEGY_H_ |
6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_IDENTITY_STRATEGY_H_ | 6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_IDENTITY_STRATEGY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 virtual std::string GetDeviceToken() = 0; | 45 virtual std::string GetDeviceToken() = 0; |
46 | 46 |
47 // Returns the device ID for this device. This is a unique identifier that is | 47 // Returns the device ID for this device. This is a unique identifier that is |
48 // randomly generated at registration time on the client side. It always has | 48 // randomly generated at registration time on the client side. It always has |
49 // to be sent along with the device token to the server. | 49 // to be sent along with the device token to the server. |
50 virtual std::string GetDeviceID() = 0; | 50 virtual std::string GetDeviceID() = 0; |
51 | 51 |
52 // Returns physical machine ID for this device. | 52 // Returns physical machine ID for this device. |
53 virtual std::string GetMachineID() = 0; | 53 virtual std::string GetMachineID() = 0; |
54 | 54 |
| 55 // Returns physical machine model for this device. |
| 56 virtual std::string GetMachineModel() = 0; |
| 57 |
55 // Returns the policy type to be used for registering at the device management | 58 // Returns the policy type to be used for registering at the device management |
56 // server. | 59 // server. |
57 virtual em::DeviceRegisterRequest_Type GetPolicyRegisterType() = 0; | 60 virtual em::DeviceRegisterRequest_Type GetPolicyRegisterType() = 0; |
58 | 61 |
59 // Returns the policy type to be used for requesting policies from the device | 62 // Returns the policy type to be used for requesting policies from the device |
60 // management server. | 63 // management server. |
61 virtual std::string GetPolicyType() = 0; | 64 virtual std::string GetPolicyType() = 0; |
62 | 65 |
63 // Retrieves authentication credentials to use when talking to the device | 66 // Retrieves authentication credentials to use when talking to the device |
64 // management service. Returns true if the data is available and writes the | 67 // management service. Returns true if the data is available and writes the |
(...skipping 16 matching lines...) Expand all Loading... |
81 | 84 |
82 private: | 85 private: |
83 ObserverList<Observer, true> observer_list_; | 86 ObserverList<Observer, true> observer_list_; |
84 | 87 |
85 DISALLOW_COPY_AND_ASSIGN(CloudPolicyIdentityStrategy); | 88 DISALLOW_COPY_AND_ASSIGN(CloudPolicyIdentityStrategy); |
86 }; | 89 }; |
87 | 90 |
88 } // namespace policy | 91 } // namespace policy |
89 | 92 |
90 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_IDENTITY_STRATEGY_H_ | 93 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_IDENTITY_STRATEGY_H_ |
OLD | NEW |