Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Unified Diff: chrome/browser/policy/cloud_policy_identity_strategy.h

Issue 6537020: Update policy backend and testserver for the newest policy protocol (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more last minute changes Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.
« no previous file with comments | « chrome/browser/policy/cloud_policy_controller_unittest.cc ('k') | chrome/browser/policy/device_management_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698