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..dfd163f38d07c6ad2cf300843329014c00adefa2 |
| --- /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; |
| + |
| +// A interface class for creating remote commands based on command type. |
|
bartfab (slow)
2015/02/28 00:01:23
Nit: s/A/An/
binjin
2015/02/28 02:18:05
Done.
|
| +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_ |