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

Unified Diff: remoting/host/clipboard.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/client_session_unittest.cc ('k') | remoting/host/clipboard_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/clipboard.h
diff --git a/remoting/host/clipboard.h b/remoting/host/clipboard.h
index c977b7a1f09adb94acc77b1e3d72b3f727f3e116..f952a7265ab02d4b8f6cb46a9fc5f9db083a060e 100644
--- a/remoting/host/clipboard.h
+++ b/remoting/host/clipboard.h
@@ -5,10 +5,10 @@
#ifndef REMOTING_HOST_CLIPBOARD_H_
#define REMOTING_HOST_CLIPBOARD_H_
+#include <memory>
#include <string>
#include "base/callback.h"
-#include "base/memory/scoped_ptr.h"
namespace remoting {
@@ -24,12 +24,13 @@ class Clipboard {
virtual ~Clipboard() {}
// Initialises any objects needed to read from or write to the clipboard.
- virtual void Start(scoped_ptr<protocol::ClipboardStub> client_clipboard) = 0;
+ virtual void Start(
+ std::unique_ptr<protocol::ClipboardStub> client_clipboard) = 0;
// Writes an item to the clipboard. It must be called after Start().
virtual void InjectClipboardEvent(const protocol::ClipboardEvent& event) = 0;
- static scoped_ptr<Clipboard> Create();
+ static std::unique_ptr<Clipboard> Create();
};
} // namespace remoting
« no previous file with comments | « remoting/host/client_session_unittest.cc ('k') | remoting/host/clipboard_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698