Index: chrome/browser/policy/cloud_policy_identity_strategy.h |
diff --git a/chrome/browser/policy/cloud_policy_identity_strategy.h b/chrome/browser/policy/cloud_policy_identity_strategy.h |
index 1ecf8408e293f4ce27bc43dfbede7b35a5b6641a..1b4db766fa478ec2233e944664aa176e201a9843 100644 |
--- a/chrome/browser/policy/cloud_policy_identity_strategy.h |
+++ b/chrome/browser/policy/cloud_policy_identity_strategy.h |
@@ -9,9 +9,12 @@ |
#include <string> |
#include "base/observer_list.h" |
+#include "chrome/browser/policy/proto/device_management_backend.pb.h" |
namespace policy { |
+namespace em = enterprise_management; |
+ |
// Manages a device management token, i.e. an identifier that represents a |
// registration with the device management service, and the associated |
// credentials. Responsibilities include storing and loading the token from |
@@ -41,9 +44,22 @@ class CloudPolicyIdentityStrategy { |
// if the device token is currently unavailable. |
virtual std::string GetDeviceToken() = 0; |
- // Returns the device ID for this device. |
+ // Returns the device ID for this device. This is a unique identifier that is |
+ // randomly generated at registration time on the client side. It always has |
+ // to be sent along with the device token to the server. |
virtual std::string GetDeviceID() = 0; |
+ // Returns physical machine ID for this device. |
+ virtual std::string GetMachineID() = 0; |
+ |
+ // Returns the policy type to be used for registering at the device management |
+ // server. |
+ virtual em::DeviceRegisterRequest_Type GetPolicyRegisterType() = 0; |
+ |
+ // Returns the policy type to be used for requesting policies from the device |
+ // management server. |
+ virtual std::string GetPolicyType() = 0; |
+ |
// Retrieves authentication credentials to use when talking to the device |
// management service. Returns true if the data is available and writes the |
// values to the provided pointers. |