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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/desktop_capturer_proxy.cc ('k') | remoting/host/mouse_shape_pump.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/mouse_shape_pump.h
diff --git a/remoting/host/mouse_shape_pump.h b/remoting/host/mouse_shape_pump.h
new file mode 100644
index 0000000000000000000000000000000000000000..cc00189390037ac4c7f3fec134ffd66549bb2bd6
--- /dev/null
+++ b/remoting/host/mouse_shape_pump.h
@@ -0,0 +1,56 @@
+// 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 REMOTING_HOST_MOUSE_SHAPE_PUMP_H_
+#define REMOTING_HOST_MOUSE_SHAPE_PUMP_H_
+
+#include "base/callback.h"
+#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
+#include "base/threading/thread_checker.h"
+
+namespace base {
+class SingleThreadTaskRunner;
+} // namespace base
+
+namespace webrtc {
+class MouseCursorMonitor;
+} // namespace webrtc
+
+namespace remoting {
+
+namespace protocol {
+class CursorShapeStub;
+class CursorShapeInfo;
+} // namespace protocol
+
+// MouseShapePump is responsible for capturing mouse shape using
+// MouseCursorMonitor and sending it to a CursorShapeStub.
+class MouseShapePump {
+ public:
+ MouseShapePump(
+ scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner,
+ scoped_ptr<webrtc::MouseCursorMonitor> mouse_cursor_monitor,
+ protocol::CursorShapeStub* cursor_shape_stub);
+ ~MouseShapePump();
+
+ private:
+ class Core;
+
+ void OnCursorShape(scoped_ptr<protocol::CursorShapeInfo> cursor);
+
+ base::ThreadChecker thread_checker_;
+
+ scoped_ptr<Core> core_;
+ scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner_;
+ protocol::CursorShapeStub* cursor_shape_stub_;
+
+ base::WeakPtrFactory<MouseShapePump> weak_factory_;
+
+ DISALLOW_COPY_AND_ASSIGN(MouseShapePump);
+};
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_MOUSE_SHAPE_PUMP_H_
« no previous file with comments | « remoting/host/desktop_capturer_proxy.cc ('k') | remoting/host/mouse_shape_pump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698