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

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

Issue 879233003: Initial RemoteCommandService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remote-commands
Patch Set: rebase, fixes addressing #31 Created 5 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
Index: components/policy/core/common/remote_commands/remote_commands_factory.h
diff --git a/components/policy/core/common/remote_commands/remote_commands_factory.h b/components/policy/core/common/remote_commands/remote_commands_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..41a0d7b72bd3e89b62b8a2d2b5b3b516add12321
--- /dev/null
+++ b/components/policy/core/common/remote_commands/remote_commands_factory.h
@@ -0,0 +1,31 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_POLICY_CORE_COMMON_REMOTE_COMMANDS_REMOTE_COMMANDS_FACTORY_H_
+#define COMPONENTS_POLICY_CORE_COMMON_REMOTE_COMMANDS_REMOTE_COMMANDS_FACTORY_H_
+
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+#include "components/policy/policy_export.h"
+#include "policy/proto/device_management_backend.pb.h"
+
+namespace policy {
+
+class RemoteCommandJob;
+
+// An interface class for creating remote commands based on command type.
+class POLICY_EXPORT RemoteCommandsFactory {
+ public:
+ virtual ~RemoteCommandsFactory();
+
+ virtual scoped_ptr<RemoteCommandJob> BuildJobForType(
+ enterprise_management::RemoteCommand_Type type) = 0;
+
+ private:
+ DISALLOW_ASSIGN(RemoteCommandsFactory);
+};
+
+} // namespace policy
+
+#endif // COMPONENTS_POLICY_CORE_COMMON_REMOTE_COMMANDS_REMOTE_COMMANDS_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698