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

Unified Diff: remoting/host/cast_extension.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
Index: remoting/host/cast_extension.h
diff --git a/remoting/host/cast_extension.h b/remoting/host/cast_extension.h
index fdd35a402f2d105ac2a13617ac3b3131df74f09e..1c1c6d36ad1428a768d81272b15527f8a3da7c56 100644
--- a/remoting/host/cast_extension.h
+++ b/remoting/host/cast_extension.h
@@ -12,27 +12,16 @@
#include "base/memory/scoped_ptr.h"
#include "remoting/host/host_extension.h"
-namespace base {
-class SingleThreadTaskRunner;
-} // namespace base
-
-namespace net {
-class URLRequestContextGetter;
-} // namespace net
-
namespace remoting {
namespace protocol {
-struct NetworkSettings;
+class TransportContext;
} // namespace protocol
// CastExtension extends HostExtension to enable WebRTC support.
class CastExtension : public HostExtension {
public:
- CastExtension(
- scoped_refptr<base::SingleThreadTaskRunner> network_task_runner,
- scoped_refptr<net::URLRequestContextGetter> url_request_context_getter,
- const protocol::NetworkSettings& network_settings);
+ CastExtension(scoped_refptr<protocol::TransportContext> transport_context);
~CastExtension() override;
// HostExtension interface.
@@ -42,9 +31,7 @@ class CastExtension : public HostExtension {
protocol::ClientStub* client_stub) override;
private:
- scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_;
- scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_;
- const protocol::NetworkSettings& network_settings_;
+ scoped_refptr<protocol::TransportContext> transport_context_;
DISALLOW_COPY_AND_ASSIGN(CastExtension);
};

Powered by Google App Engine
This is Rietveld 408576698