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

Unified Diff: remoting/protocol/channel_authenticator.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/protocol/capture_scheduler_unittest.cc ('k') | remoting/protocol/channel_dispatcher_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/channel_authenticator.h
diff --git a/remoting/protocol/channel_authenticator.h b/remoting/protocol/channel_authenticator.h
index e29e7d8cc5850244b4ff603f37d7307715e8e954..a6b1904e5b59e8780fd3a5ba08dff80e259f15e8 100644
--- a/remoting/protocol/channel_authenticator.h
+++ b/remoting/protocol/channel_authenticator.h
@@ -20,7 +20,7 @@ class P2PStreamSocket;
// should be used only once for one channel.
class ChannelAuthenticator {
public:
- typedef base::Callback<void(int error, scoped_ptr<P2PStreamSocket>)>
+ typedef base::Callback<void(int error, std::unique_ptr<P2PStreamSocket>)>
DoneCallback;
virtual ~ChannelAuthenticator() {}
@@ -28,9 +28,8 @@ class ChannelAuthenticator {
// Start authentication of the given |socket|. |done_callback| is called when
// authentication is finished. Callback may be invoked before this method
// returns, and may delete the calling authenticator.
- virtual void SecureAndAuthenticate(
- scoped_ptr<P2PStreamSocket> socket,
- const DoneCallback& done_callback) = 0;
+ virtual void SecureAndAuthenticate(std::unique_ptr<P2PStreamSocket> socket,
+ const DoneCallback& done_callback) = 0;
};
} // namespace protocol
« no previous file with comments | « remoting/protocol/capture_scheduler_unittest.cc ('k') | remoting/protocol/channel_dispatcher_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698