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

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

Issue 883673004: Cleanup VideoFramePump. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rename_scheduler
Patch Set: Created 5 years, 10 months 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
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_HOST_MOUSE_SHAPE_PUMP_H_
6 #define REMOTING_HOST_MOUSE_SHAPE_PUMP_H_
7
8 #include "base/callback.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h"
11
12 namespace base {
13 class SingleThreadTaskRunner;
14 } // namespace base
15
16 namespace webrtc {
17 class MouseCursorMonitor;
18 } // namespace webrtc
19
20 namespace remoting {
21
22 namespace protocol {
23 class CursorShapeStub;
24 class CursorShapeInfo;
25 } // namespace protocol
26
27 // MouseShapePump is responsible for capturing mouse shape using
28 // MouseCursorMonitor and sending it to a CursorShapeStub.
29 class MouseShapePump {
30 public:
31 MouseShapePump(
32 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner,
Wez 2015/02/11 01:05:07 As for VideoFramePump; there's no concept of "netw
Sergey Ulanov 2015/02/11 19:21:35 Done.
33 scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner,
34 scoped_ptr<webrtc::MouseCursorMonitor> mouse_cursor_monitor,
35 protocol::CursorShapeStub* cursor_shape_stub);
36 ~MouseShapePump();
37
38 private:
39 class Core;
40
41 void OnCursorShape(scoped_ptr<protocol::CursorShapeInfo> cursor);
42
43 scoped_ptr<Core> core_;
44 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_;
45 scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner_;
46 protocol::CursorShapeStub* cursor_shape_stub_;
47
48 base::WeakPtrFactory<MouseShapePump> weak_factory_;
49
50 DISALLOW_COPY_AND_ASSIGN(MouseShapePump);
51 };
52
53 } // namespace remoting
54
55 #endif // REMOTING_HOST_MOUSE_SHAPE_PUMP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698