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

Unified Diff: remoting/protocol/jingle_session_manager.h

Issue 10233021: Move PortAllocator creation out of LibjingleTransportFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/connection_to_host.cc ('k') | remoting/protocol/jingle_session_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/jingle_session_manager.h
diff --git a/remoting/protocol/jingle_session_manager.h b/remoting/protocol/jingle_session_manager.h
index 1c4ab518b62379cc26d3e1fc713af661acd32b49..651b9685e9c4b8950faec01176224c18eb15fe71 100644
--- a/remoting/protocol/jingle_session_manager.h
+++ b/remoting/protocol/jingle_session_manager.h
@@ -45,14 +45,20 @@ class JingleSession;
class JingleSessionManager : public SessionManager,
public SignalStrategy::Listener {
public:
+ // When |fetch_stun_relay_config| is set to true then
+ // JingleSessionManager will also try to query configuration of STUN
+ // and Relay servers from the signaling server.
+ //
+ // TODO(sergeyu): Move NAT-traversal config fetching to a separate
+ // class.
explicit JingleSessionManager(
- scoped_ptr<TransportFactory> transport_factory);
+ scoped_ptr<TransportFactory> transport_factory,
+ bool fetch_stun_relay_config);
virtual ~JingleSessionManager();
// SessionManager interface.
virtual void Init(SignalStrategy* signal_strategy,
- SessionManager::Listener* listener,
- const NetworkSettings& network_settings) OVERRIDE;
+ SessionManager::Listener* listener) OVERRIDE;
virtual scoped_ptr<Session> Connect(
const std::string& host_jid,
scoped_ptr<Authenticator> authenticator,
@@ -86,6 +92,7 @@ class JingleSessionManager : public SessionManager,
void SessionDestroyed(JingleSession* session);
scoped_ptr<TransportFactory> transport_factory_;
+ bool fetch_stun_relay_config_;
SignalStrategy* signal_strategy_;
scoped_ptr<AuthenticatorFactory> authenticator_factory_;
« no previous file with comments | « remoting/protocol/connection_to_host.cc ('k') | remoting/protocol/jingle_session_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698