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

Unified Diff: remoting/protocol/jingle_session_manager.h

Issue 1545743002: Move ownership of Transport out of Session. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass_client
Patch Set: Created 5 years 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
Index: remoting/protocol/jingle_session_manager.h
diff --git a/remoting/protocol/jingle_session_manager.h b/remoting/protocol/jingle_session_manager.h
index d3db7359c5430e1c1911ced98281c090bbe183f2..fb4bf018e6bbd045e7a26d493c8aa6a56f8d1969 100644
--- a/remoting/protocol/jingle_session_manager.h
+++ b/remoting/protocol/jingle_session_manager.h
@@ -32,8 +32,7 @@ class TransportFactory;
class JingleSessionManager : public SessionManager,
public SignalStrategy::Listener {
public:
- JingleSessionManager(scoped_ptr<TransportFactory> transport_factory,
- SignalStrategy* signal_strategy);
+ explicit JingleSessionManager(SignalStrategy* signal_strategy);
~JingleSessionManager() override;
// SessionManager interface.
@@ -62,8 +61,7 @@ class JingleSessionManager : public SessionManager,
// Called by JingleSession when it is being destroyed.
void SessionDestroyed(JingleSession* session);
- scoped_ptr<TransportFactory> transport_factory_;
- SignalStrategy* signal_strategy_;
+ SignalStrategy* signal_strategy_ = nullptr;
IncomingSessionCallback incoming_session_callback_;
scoped_ptr<CandidateSessionConfig> protocol_config_;

Powered by Google App Engine
This is Rietveld 408576698