forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction_executor.h
38 lines (26 loc) · 936 Bytes
/
action_executor.h
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
33
34
35
36
37
38
// Copyright 2018 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 REMOTING_HOST_ACTION_EXECUTOR_H_
#define REMOTING_HOST_ACTION_EXECUTOR_H_
#include <memory>
#include "base/macros.h"
namespace remoting {
namespace protocol {
class ActionRequest;
} // namespace protocol
class ActionExecutor {
public:
virtual ~ActionExecutor();
// Creates an action executor for the current platform / host architecture.
static std::unique_ptr<ActionExecutor> Create();
// Implementations must never assume the presence of any |request| fields,
// nor assume that their contents are valid.
virtual void ExecuteAction(const protocol::ActionRequest& request) = 0;
protected:
ActionExecutor();
private:
DISALLOW_COPY_AND_ASSIGN(ActionExecutor);
};
} // namespace remoting
#endif // REMOTING_HOST_ACTION_EXECUTOR_H_