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

Unified Diff: chrome/browser/chromeos/login/signed_settings_helper.h

Issue 6705031: Send policy blobs to session_manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nits Created 9 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/signed_settings_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/signed_settings_helper.h
diff --git a/chrome/browser/chromeos/login/signed_settings_helper.h b/chrome/browser/chromeos/login/signed_settings_helper.h
index d65b6778f47130328e605074dc5ac6839777552c..f5b41337e3578d393de08fc47911a8912cae9e6e 100644
--- a/chrome/browser/chromeos/login/signed_settings_helper.h
+++ b/chrome/browser/chromeos/login/signed_settings_helper.h
@@ -6,8 +6,14 @@
#define CHROME_BROWSER_CHROMEOS_LOGIN_SIGNED_SETTINGS_HELPER_H_
#pragma once
+#include <string>
+
#include "chrome/browser/chromeos/login/signed_settings.h"
+namespace enterprise_management {
+class PolicyFetchResponse;
+} // namespace enterprise_management
+namespace em = enterprise_management;
namespace chromeos {
class SignedSettings;
@@ -43,6 +49,15 @@ class SignedSettingsHelper {
SignedSettings::ReturnCode code,
const std::string& name,
const std::string& value) {}
+
+ // Callback of StorePolicyOp.
+ virtual void OnStorePolicyCompleted(
+ SignedSettings::ReturnCode code) {}
+
+ // Callback of RetrievePolicyOp.
+ virtual void OnRetrievePolicyCompleted(
+ SignedSettings::ReturnCode code,
+ const em::PolicyFetchResponse& policy) {}
};
// Class factory
@@ -59,6 +74,9 @@ class SignedSettingsHelper {
Callback* callback) = 0;
virtual void StartRetrieveProperty(const std::string& name,
Callback* callback) = 0;
+ virtual void StartStorePolicyOp(const em::PolicyFetchResponse& policy,
+ Callback* callback) = 0;
+ virtual void StartRetrievePolicyOp(Callback* callback) = 0;
// Cancels all pending calls of given callback.
virtual void CancelCallback(Callback* callback) = 0;
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/signed_settings_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698