Chromium Code Reviews| 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..e962a1aa9eb1b35b06941ccf4e7ef17a518fb3fb |
| --- /dev/null |
| +++ b/components/policy/core/common/remote_commands/remote_commands_factory.h |
| @@ -0,0 +1,27 @@ |
| +// 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/memory/scoped_ptr.h" |
| +#include "components/policy/policy_export.h" |
| +#include "policy/proto/device_management_backend.pb.h" |
| + |
| +namespace policy { |
| + |
| +class RemoteCommandJob; |
| + |
| +// A 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; |
| +}; |
|
bartfab (slow)
2015/02/18 11:12:53
Nit: Add DISALLOW_ASSIGN(RemoteCommandsFactory);
binjin
2015/02/18 15:37:50
Done.
|
| + |
| +} // namespace policy |
| + |
| +#endif // COMPONENTS_POLICY_CORE_COMMON_REMOTE_COMMANDS_REMOTE_COMMANDS_FACTORY_H_ |