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

Unified Diff: remoting/host/mouse_shape_pump.h

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 years, 8 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/mouse_cursor_monitor_proxy_unittest.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
index cf6f370eda4352c7e00ffe80df6188f948f9b07a..f5a499a9bac1f509cb28bd46f3b9f421a8312dbc 100644
--- a/remoting/host/mouse_shape_pump.h
+++ b/remoting/host/mouse_shape_pump.h
@@ -5,8 +5,9 @@
#ifndef REMOTING_HOST_MOUSE_SHAPE_PUMP_H_
#define REMOTING_HOST_MOUSE_SHAPE_PUMP_H_
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/threading/thread_checker.h"
#include "base/timer/timer.h"
#include "third_party/webrtc/modules/desktop_capture/mouse_cursor_monitor.h"
@@ -21,8 +22,9 @@ class CursorShapeStub;
// MouseCursorMonitor and sending it to a CursorShapeStub.
class MouseShapePump : public webrtc::MouseCursorMonitor::Callback {
public:
- MouseShapePump(scoped_ptr<webrtc::MouseCursorMonitor> mouse_cursor_monitor,
- protocol::CursorShapeStub* cursor_shape_stub);
+ MouseShapePump(
+ std::unique_ptr<webrtc::MouseCursorMonitor> mouse_cursor_monitor,
+ protocol::CursorShapeStub* cursor_shape_stub);
~MouseShapePump() override;
private:
@@ -34,7 +36,7 @@ class MouseShapePump : public webrtc::MouseCursorMonitor::Callback {
const webrtc::DesktopVector& position) override;
base::ThreadChecker thread_checker_;
- scoped_ptr<webrtc::MouseCursorMonitor> mouse_cursor_monitor_;
+ std::unique_ptr<webrtc::MouseCursorMonitor> mouse_cursor_monitor_;
protocol::CursorShapeStub* cursor_shape_stub_;
base::Timer capture_timer_;
« no previous file with comments | « remoting/host/mouse_cursor_monitor_proxy_unittest.cc ('k') | remoting/host/mouse_shape_pump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698