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

Unified Diff: components/policy/core/common/cloud/cloud_policy_core.h

Issue 879233003: Initial RemoteCommandService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remote-commands
Patch Set: WIP Created 5 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: components/policy/core/common/cloud/cloud_policy_core.h
diff --git a/components/policy/core/common/cloud/cloud_policy_core.h b/components/policy/core/common/cloud/cloud_policy_core.h
index c8e6e5987718640fc7a64f52aba25886a23e74ba..c6cb1162b69d61e22e257e4cd7f960e9102948b6 100644
--- a/components/policy/core/common/cloud/cloud_policy_core.h
+++ b/components/policy/core/common/cloud/cloud_policy_core.h
@@ -12,6 +12,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
#include "base/prefs/pref_member.h"
+#include "components/policy/core/common/remote_commands/remote_command_job.h"
#include "components/policy/policy_export.h"
class PrefService;
@@ -26,6 +27,7 @@ class CloudPolicyClient;
class CloudPolicyRefreshScheduler;
class CloudPolicyService;
class CloudPolicyStore;
+class RemoteCommandsService;
// CloudPolicyCore glues together the ingredients that are essential for
// obtaining a fully-functional cloud policy system: CloudPolicyClient and
@@ -73,12 +75,23 @@ class POLICY_EXPORT CloudPolicyCore {
return refresh_scheduler_.get();
}
+ RemoteCommandsService* remote_commands_service() {
+ return remote_commands_service_.get();
+ }
+ const RemoteCommandsService* remote_commands_service() const {
+ return remote_commands_service_.get();
+ }
+
// Initializes the cloud connection.
void Connect(scoped_ptr<CloudPolicyClient> client);
// Shuts down the cloud connection.
void Disconnect();
+ // XXX
+ void StartRemoteCommandsService(
bartfab (slow) 2015/02/12 14:29:19 Why can this not start automatically on connect?
binjin 2015/02/16 22:46:23 Done.
+ scoped_ptr<RemoteCommandJob::Factory> factory);
+
// Requests a policy refresh to be performed soon. This may apply throttling,
// and the request may not be immediately sent.
void RefreshSoon();
@@ -108,6 +121,7 @@ class POLICY_EXPORT CloudPolicyCore {
scoped_ptr<CloudPolicyClient> client_;
scoped_ptr<CloudPolicyService> service_;
scoped_ptr<CloudPolicyRefreshScheduler> refresh_scheduler_;
+ scoped_ptr<RemoteCommandsService> remote_commands_service_;
scoped_ptr<IntegerPrefMember> refresh_delay_;
ObserverList<Observer, true> observers_;

Powered by Google App Engine
This is Rietveld 408576698