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

Side by Side Diff: remoting/host/event_executor_linux.h

Issue 5298001: Use VP8 over PseudoTCP by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 10 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_HOST_EVENT_EXECUTOR_LINUX_H_ 5 #ifndef REMOTING_HOST_EVENT_EXECUTOR_LINUX_H_
6 #define REMOTING_HOST_EVENT_EXECUTOR_LINUX_H_ 6 #define REMOTING_HOST_EVENT_EXECUTOR_LINUX_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/task.h" 10 #include "base/task.h"
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/scoped_ptr.h" 12 #include "base/scoped_ptr.h"
13 #include "remoting/protocol/input_stub.h" 13 #include "remoting/host/event_executor.h"
14
15 class MessageLoop;
16 14
17 namespace remoting { 15 namespace remoting {
18 16
19 class Capturer;
20 class ChromotingClientMessage;
21 class EventExecutorLinuxPimpl; 17 class EventExecutorLinuxPimpl;
22 18
23 // A class to generate events on Linux. 19 // A class to generate events on Linux.
24 class EventExecutorLinux : public protocol::InputStub { 20 class EventExecutorLinux : public EventExecutor {
25 public: 21 public:
26 EventExecutorLinux(MessageLoop* message_loop, 22 EventExecutorLinux(MessageLoop* message_loop,
27 Capturer* capturer); 23 Capturer* capturer);
28 virtual ~EventExecutorLinux(); 24 virtual ~EventExecutorLinux();
29 25
30 virtual void InjectKeyEvent(const KeyEvent* event, Task* done); 26 virtual void InjectKeyEvent(const KeyEvent* event, Task* done);
31 virtual void InjectMouseEvent(const MouseEvent* event, Task* done); 27 virtual void InjectMouseEvent(const MouseEvent* event, Task* done);
32 28
33 private: 29 private:
34 MessageLoop* message_loop_; 30 MessageLoop* message_loop_;
35 Capturer* capturer_; 31 Capturer* capturer_;
36 scoped_ptr<EventExecutorLinuxPimpl> pimpl_; 32 scoped_ptr<EventExecutorLinuxPimpl> pimpl_;
37 33
38 DISALLOW_COPY_AND_ASSIGN(EventExecutorLinux); 34 DISALLOW_COPY_AND_ASSIGN(EventExecutorLinux);
39 }; 35 };
40 36
41 } // namespace remoting 37 } // namespace remoting
42 38
43 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::EventExecutorLinux); 39 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::EventExecutorLinux);
44 40
45 #endif // REMOTING_HOST_EVENT_EXECUTOR_LINUX_H_ 41 #endif // REMOTING_HOST_EVENT_EXECUTOR_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698