blob: 02242797dc22eb8893d517ef812f0304c1466bee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// 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 <memory>
#include "components/policy/policy_export.h"
#include "components/policy/proto/device_management_backend.pb.h"
namespace policy {
class RemoteCommandJob;
class RemoteCommandsService;
// An interface class for creating remote commands based on command type.
class POLICY_EXPORT RemoteCommandsFactory {
public:
RemoteCommandsFactory& operator=(const RemoteCommandsFactory&) = delete;
virtual ~RemoteCommandsFactory();
virtual std::unique_ptr<RemoteCommandJob> BuildJobForType(
enterprise_management::RemoteCommand_Type type,
RemoteCommandsService* service) = 0;
};
} // namespace policy
#endif // COMPONENTS_POLICY_CORE_COMMON_REMOTE_COMMANDS_REMOTE_COMMANDS_FACTORY_H_
|