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

Unified Diff: remoting/protocol/session_manager.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/session_config_unittest.cc ('k') | remoting/protocol/spake2_authenticator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/session_manager.h
diff --git a/remoting/protocol/session_manager.h b/remoting/protocol/session_manager.h
index 6d706adad998e6431634724ed9cf297684ac044a..71c5007f8041975d52bbd02f1d586d89cf2d3248 100644
--- a/remoting/protocol/session_manager.h
+++ b/remoting/protocol/session_manager.h
@@ -106,15 +106,15 @@ class SessionManager : public base::NonThreadSafe {
// Sets local protocol configuration to be used when negotiating outgoing and
// incoming connections.
virtual void set_protocol_config(
- scoped_ptr<CandidateSessionConfig> config) = 0;
+ std::unique_ptr<CandidateSessionConfig> config) = 0;
// Tries to create a session to the host |jid|.
//
// |host_jid| is the full jid of the host to connect to.
// |authenticator| is a client authenticator for the session.
- virtual scoped_ptr<Session> Connect(
+ virtual std::unique_ptr<Session> Connect(
const std::string& host_jid,
- scoped_ptr<Authenticator> authenticator) = 0;
+ std::unique_ptr<Authenticator> authenticator) = 0;
// Set authenticator factory that should be used to authenticate
// incoming connection. No connections will be accepted if
@@ -122,7 +122,7 @@ class SessionManager : public base::NonThreadSafe {
// once per SessionManager because it may not be safe to delete
// factory before all authenticators it created are deleted.
virtual void set_authenticator_factory(
- scoped_ptr<AuthenticatorFactory> authenticator_factory) = 0;
+ std::unique_ptr<AuthenticatorFactory> authenticator_factory) = 0;
private:
DISALLOW_COPY_AND_ASSIGN(SessionManager);
« no previous file with comments | « remoting/protocol/session_config_unittest.cc ('k') | remoting/protocol/spake2_authenticator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698