Index: remoting/host/cast_extension_session.h |
diff --git a/remoting/host/cast_extension_session.h b/remoting/host/cast_extension_session.h |
index 8a10b4dda7854fa137413c42eb280cd963481472..a035ec0a5bfdc88c8499baf4fb88277650f2eec3 100644 |
--- a/remoting/host/cast_extension_session.h |
+++ b/remoting/host/cast_extension_session.h |
@@ -24,10 +24,6 @@ class SingleThreadTaskRunner; |
class WaitableEvent; |
} // namespace base |
-namespace net { |
-class URLRequestContextGetter; |
-} // namespace net |
- |
namespace webrtc { |
class MediaStreamInterface; |
} // namespace webrtc |
@@ -37,7 +33,7 @@ namespace remoting { |
class CastCreateSessionDescriptionObserver; |
namespace protocol { |
-struct NetworkSettings; |
+class TransportContext; |
} // namespace protocol |
// A HostExtensionSession implementation that enables WebRTC support using |
@@ -51,9 +47,7 @@ class CastExtensionSession : public HostExtensionSession, |
// initialization steps on it. The caller must take ownership of the returned |
// object. |
static scoped_ptr<CastExtensionSession> Create( |
- scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, |
- scoped_refptr<net::URLRequestContextGetter> url_request_context_getter, |
- const protocol::NetworkSettings& network_settings, |
+ scoped_refptr<protocol::TransportContext> transport_context, |
ClientSessionControl* client_session_control, |
protocol::ClientStub* client_stub); |
@@ -87,9 +81,7 @@ class CastExtensionSession : public HostExtensionSession, |
private: |
CastExtensionSession( |
- scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, |
- scoped_refptr<net::URLRequestContextGetter> url_request_context_getter, |
- const protocol::NetworkSettings& network_settings, |
+ scoped_refptr<protocol::TransportContext> transport_context, |
ClientSessionControl* client_session_control, |
protocol::ClientStub* client_stub); |
@@ -199,9 +191,8 @@ class CastExtensionSession : public HostExtensionSession, |
rtc::scoped_refptr<CastCreateSessionDescriptionObserver> |
create_session_desc_observer_; |
- // Parameters passed to ChromiumPortAllocator on creation. |
- scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; |
- const protocol::NetworkSettings& network_settings_; |
+ // TransportContext for P2P transport. |
+ scoped_refptr<protocol::TransportContext> transport_context_; |
// Interface to interact with ClientSession. |
ClientSessionControl* client_session_control_; |