Chromium Code Reviews| 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 f3f2ca2809ecd59d701b12b7863ba5c8b6aab1e8..074a077756b2e32f325d92af2f5cf08bba914f09 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" |
| @@ -41,6 +42,8 @@ class DeviceCloudPolicyManagerChromeOS : public CloudPolicyManager { |
| public: |
| // Invoked when the device cloud policy manager connects. |
| virtual void OnDeviceCloudPolicyManagerConnected() = 0; |
| + // Invoked when the device cloud policy manager is disconnected. |
|
bartfab (slow)
2014/11/28 13:25:18
Nit: s/is disconnected/disconnects/
davidyu
2014/12/01 17:05:22
Done.
|
| + virtual void OnDeviceCloudPolicyManagerDisconnected() = 0; |
| }; |
| // |task_runner| is the runner for policy refresh tasks. |
| @@ -86,6 +89,13 @@ class DeviceCloudPolicyManagerChromeOS : public CloudPolicyManager { |
| scoped_ptr<CloudPolicyClient::StatusProvider> |
| device_status_provider); |
| + // Sends the unregister request. |callback| is invoked with a boolean |
| + // parameter indicating the result when done. |
| + virtual void Unregister(const base::Callback<void(bool)>& callback); |
|
bartfab (slow)
2014/11/28 13:25:18
Nit: If you define a type for this callback, the f
davidyu
2014/12/01 17:05:22
Done.
|
| + |
| + // Disconnects the manager. |
| + virtual void Disconnect(); |
| + |
| DeviceCloudPolicyStoreChromeOS* device_store() { |
| return device_store_.get(); |
| } |
| @@ -98,6 +108,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. |