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

Unified Diff: remoting/host/cast_extension_session.h

Issue 1571943002: Simplify PortAllocatorBase and make PortAllocator creation synchronous. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/host/cast_extension.cc ('k') | remoting/host/cast_extension_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « remoting/host/cast_extension.cc ('k') | remoting/host/cast_extension_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698