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

Unified Diff: chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h

Issue 751703003: Implemented consumer management unenrollment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dcpm
Patch Set: Rebase. Created 5 years, 11 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/chromeos/policy/device_cloud_policy_manager_chromeos.h
diff --git a/chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h b/chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h
index cad94ec422177c1dd4c1c14035323e149ab644a3..557e57aa8bc2a6c6fe4039338ef492bae4a130c6 100644
--- a/chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h
+++ b/chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/callback_forward.h"
#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
@@ -42,8 +43,12 @@ class DeviceCloudPolicyManagerChromeOS : public CloudPolicyManager {
public:
// Invoked when the device cloud policy manager connects.
virtual void OnDeviceCloudPolicyManagerConnected() = 0;
+ // Invoked when the device cloud policy manager disconnects.
+ virtual void OnDeviceCloudPolicyManagerDisconnected() = 0;
};
+ using UnregisterCallback = base::Callback<void(bool)>;
+
// |task_runner| is the runner for policy refresh tasks.
DeviceCloudPolicyManagerChromeOS(
scoped_ptr<DeviceCloudPolicyStoreChromeOS> store,
@@ -86,6 +91,13 @@ class DeviceCloudPolicyManagerChromeOS : public CloudPolicyManager {
void StartConnection(scoped_ptr<CloudPolicyClient> client_to_connect,
EnterpriseInstallAttributes* install_attributes);
+ // Sends the unregister request. |callback| is invoked with a boolean
+ // parameter indicating the result when done.
+ virtual void Unregister(const UnregisterCallback& callback);
+
+ // Disconnects the manager.
+ virtual void Disconnect();
+
DeviceCloudPolicyStoreChromeOS* device_store() {
return device_store_.get();
}
@@ -98,6 +110,7 @@ class DeviceCloudPolicyManagerChromeOS : public CloudPolicyManager {
void InitializeRequisition();
void NotifyConnected();
+ void NotifyDisconnected();
// Points to the same object as the base CloudPolicyManager::store(), but with
// actual device policy specific type.

Powered by Google App Engine
This is Rietveld 408576698