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

Unified Diff: components/policy/core/common/remote_commands/remote_command_job.h

Issue 879233003: Initial RemoteCommandService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remote-commands
Patch Set: fix last_command_id 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: components/policy/core/common/remote_commands/remote_command_job.h
diff --git a/components/policy/core/common/remote_commands/remote_command_job.h b/components/policy/core/common/remote_commands/remote_command_job.h
index dd23747ead94c29fdde8d9af732532c2669998d1..f03466af97e425b544854b53bd069c7602f70c4a 100644
--- a/components/policy/core/common/remote_commands/remote_command_job.h
+++ b/components/policy/core/common/remote_commands/remote_command_job.h
@@ -37,6 +37,16 @@ class POLICY_EXPORT RemoteCommandJob {
TERMINATED, // The job was terminated before finishing by itself.
};
+ // XXX
+ class Factory {
+ public:
+ virtual ~Factory() {}
+
+ // XXX
+ virtual scoped_ptr<RemoteCommandJob> BuildJobForType(
bartfab (slow) 2015/01/29 10:18:05 We could just make this a static method of RemoteC
binjin 2015/01/29 10:44:10 I expect chrome and chromeos have different implem
bartfab (slow) 2015/01/29 15:28:58 Good thinking. Yes, the factory will need to be in
+ enterprise_management::RemoteCommand_Type type) = 0;
+ };
+
using FinishedCallback = base::Closure;
virtual ~RemoteCommandJob();

Powered by Google App Engine
This is Rietveld 408576698