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

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: 5 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 681d80acd21f9884f36bc3e1be3b0c80d20f4310..6864587da00021a94d5d57d46fbb0c60485e8403 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
@@ -49,6 +52,17 @@ class CloudPolicyIdentityStrategy {
// Returns the device ID for this device.
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.

Powered by Google App Engine
This is Rietveld 408576698