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

Unified Diff: chrome/browser/policy/device_token_fetcher.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/device_token_fetcher.h
diff --git a/chrome/browser/policy/device_token_fetcher.h b/chrome/browser/policy/device_token_fetcher.h
index 0501433ed5885b9eea26a1d639f649dec239d88b..7f7810031a08a4ac281f5c5695a289ed7ae7c916 100644
--- a/chrome/browser/policy/device_token_fetcher.h
+++ b/chrome/browser/policy/device_token_fetcher.h
@@ -12,6 +12,7 @@
#include "base/scoped_ptr.h"
#include "base/task.h"
#include "chrome/browser/policy/device_management_backend.h"
+#include "chrome/browser/policy/proto/device_management_backend.pb.h"
namespace policy {
@@ -48,7 +49,9 @@ class DeviceTokenFetcher
// Starts fetching a token.
// Declared virtual so it can be overridden by mocks.
virtual void FetchToken(const std::string& auth_token,
- const std::string& device_id);
+ const std::string& device_id,
+ em::DeviceRegisterRequest_Type policy_type,
+ const std::string& machine_id);
// Returns the device management token or the empty string if not available.
// Declared virtual so it can be overridden by mocks.
@@ -125,6 +128,10 @@ class DeviceTokenFetcher
std::string auth_token_;
// Device identifier to send to the server.
std::string device_id_;
+ // Contains policy type to send to the server.
+ em::DeviceRegisterRequest_Type policy_type_;
+ // Contains physical machine id to send to the server.
+ std::string machine_id_;
// Task that has been scheduled to retry fetching a token.
CancelableTask* retry_task_;
« no previous file with comments | « chrome/browser/policy/device_policy_identity_strategy.cc ('k') | chrome/browser/policy/device_token_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698