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

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 #include "base/threading/non_thread_safe.h"
12
13 namespace base {
14 class SingleThreadTaskRunner;
15 } // namespace base
16
17 namespace webrtc {
18 class MouseCursorMonitor;
19 } // namespace webrtc
20
21 namespace remoting {
22
23 namespace protocol {
24 class CursorShapeStub;
25 class CursorShapeInfo;
26 } // namespace protocol
27
28 // MouseShapePump is responsible for capturing mouse shape using
29 // MouseCursorMonitor and sending it to a CursorShapeStub.
30 class MouseShapePump : public base::NonThreadSafe {
Wez 2015/02/12 21:59:15 See other comment re ThreadChecker vs NonThreadSaf
Sergey Ulanov 2015/02/13 08:39:44 Done.
31 public:
32 MouseShapePump(
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> capture_task_runner_;
45 protocol::CursorShapeStub* cursor_shape_stub_;
46
47 base::WeakPtrFactory<MouseShapePump> weak_factory_;
48
49 DISALLOW_COPY_AND_ASSIGN(MouseShapePump);
50 };
51
52 } // namespace remoting
53
54 #endif // REMOTING_HOST_MOUSE_SHAPE_PUMP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698