diff options
Diffstat (limited to 'remoting/protocol/chromium_port_allocator.h')
-rw-r--r-- | remoting/protocol/chromium_port_allocator.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/remoting/protocol/chromium_port_allocator.h b/remoting/protocol/chromium_port_allocator.h index 63d6e57..d01497a 100644 --- a/remoting/protocol/chromium_port_allocator.h +++ b/remoting/protocol/chromium_port_allocator.h @@ -26,11 +26,17 @@ struct NetworkSettings; // stack. class ChromiumPortAllocator : public PortAllocatorBase { public: - static scoped_ptr<ChromiumPortAllocator> Create( - const scoped_refptr<net::URLRequestContextGetter>& url_context); - + ChromiumPortAllocator( + scoped_ptr<rtc::NetworkManager> network_manager, + scoped_ptr<rtc::PacketSocketFactory> socket_factory, + scoped_refptr<TransportContext> transport_context, + scoped_refptr<net::URLRequestContextGetter> url_context); ~ChromiumPortAllocator() override; + scoped_refptr<net::URLRequestContextGetter> url_context() { + return url_context_; + } + // PortAllocatorBase overrides. cricket::PortAllocatorSession* CreateSessionInternal( const std::string& content_name, @@ -39,14 +45,7 @@ class ChromiumPortAllocator : public PortAllocatorBase { const std::string& ice_password) override; private: - ChromiumPortAllocator( - const scoped_refptr<net::URLRequestContextGetter>& url_context, - scoped_ptr<rtc::NetworkManager> network_manager, - scoped_ptr<rtc::PacketSocketFactory> socket_factory); - scoped_refptr<net::URLRequestContextGetter> url_context_; - scoped_ptr<rtc::NetworkManager> network_manager_; - scoped_ptr<rtc::PacketSocketFactory> socket_factory_; DISALLOW_COPY_AND_ASSIGN(ChromiumPortAllocator); }; @@ -58,7 +57,8 @@ class ChromiumPortAllocatorFactory : public PortAllocatorFactory { ~ChromiumPortAllocatorFactory() override; // PortAllocatorFactory interface. - scoped_ptr<PortAllocatorBase> CreatePortAllocator() override; + scoped_ptr<cricket::PortAllocator> CreatePortAllocator( + scoped_refptr<TransportContext> transport_context) override; private: scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; |