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

Unified Diff: remoting/host/cast_extension.cc

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.h ('k') | remoting/host/cast_extension_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/cast_extension.cc
diff --git a/remoting/host/cast_extension.cc b/remoting/host/cast_extension.cc
index cf2d51c30b7f43e887f78ec48e17566533a719f1..b31844c32d1562a0a00d577708a7cb41342847e9 100644
--- a/remoting/host/cast_extension.cc
+++ b/remoting/host/cast_extension.cc
@@ -6,23 +6,17 @@
#include "net/url_request/url_request_context_getter.h"
#include "remoting/host/cast_extension_session.h"
-#include "remoting/protocol/network_settings.h"
+#include "remoting/protocol/transport_context.h"
namespace remoting {
const char kCapability[] = "casting";
CastExtension::CastExtension(
- scoped_refptr<base::SingleThreadTaskRunner> network_task_runner,
- scoped_refptr<net::URLRequestContextGetter> url_request_context_getter,
- const protocol::NetworkSettings& network_settings)
- : network_task_runner_(network_task_runner),
- url_request_context_getter_(url_request_context_getter),
- network_settings_(network_settings) {
-}
+ scoped_refptr<protocol::TransportContext> transport_context)
+ : transport_context_(transport_context) {}
-CastExtension::~CastExtension() {
-}
+CastExtension::~CastExtension() {}
std::string CastExtension::capability() const {
return kCapability;
@@ -31,9 +25,8 @@ std::string CastExtension::capability() const {
scoped_ptr<HostExtensionSession> CastExtension::CreateExtensionSession(
ClientSessionControl* client_session_control,
protocol::ClientStub* client_stub) {
- return CastExtensionSession::Create(
- network_task_runner_, url_request_context_getter_, network_settings_,
- client_session_control, client_stub);
+ return CastExtensionSession::Create(transport_context_,
+ client_session_control, client_stub);
}
} // namespace remoting
« no previous file with comments | « remoting/host/cast_extension.h ('k') | remoting/host/cast_extension_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698