| Index: remoting/protocol/webrtc_transport.h
|
| diff --git a/remoting/protocol/webrtc_transport.h b/remoting/protocol/webrtc_transport.h
|
| index 6fc79d72f43676c7b73bbdd583ed3e0260b8819e..afba35e5fbd61486e9a6dc397bd6a708e9a64efa 100644
|
| --- a/remoting/protocol/webrtc_transport.h
|
| +++ b/remoting/protocol/webrtc_transport.h
|
| @@ -6,13 +6,11 @@
|
| #define REMOTING_PROTOCOL_WEBRTC_TRANSPORT_H_
|
|
|
| #include "base/macros.h"
|
| -#include "base/memory/ref_counted.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/memory/scoped_vector.h"
|
| #include "base/memory/weak_ptr.h"
|
| #include "base/threading/thread_checker.h"
|
| #include "base/timer/timer.h"
|
| -#include "remoting/protocol/port_allocator_factory.h"
|
| #include "remoting/protocol/transport.h"
|
| #include "remoting/protocol/webrtc_data_stream_adapter.h"
|
| #include "remoting/signaling/signal_strategy.h"
|
| @@ -29,7 +27,8 @@
|
| public webrtc::PeerConnectionObserver {
|
| public:
|
| WebrtcTransport(rtc::Thread* worker_thread,
|
| - PortAllocatorFactory* port_allocator_factory,
|
| + rtc::scoped_refptr<webrtc::PortAllocatorFactoryInterface>
|
| + port_allocator_factory,
|
| TransportRole role);
|
| ~WebrtcTransport() override;
|
|
|
| @@ -80,7 +79,8 @@
|
|
|
| base::ThreadChecker thread_checker_;
|
|
|
| - PortAllocatorFactory* port_allocator_factory_;
|
| + rtc::scoped_refptr<webrtc::PortAllocatorFactoryInterface>
|
| + port_allocator_factory_;
|
| TransportRole role_;
|
| EventHandler* event_handler_ = nullptr;
|
| rtc::Thread* worker_thread_;
|
| @@ -113,7 +113,8 @@
|
| WebrtcTransportFactory(
|
| rtc::Thread* worker_thread,
|
| SignalStrategy* signal_strategy,
|
| - scoped_ptr<PortAllocatorFactory> port_allocator_factory,
|
| + rtc::scoped_refptr<webrtc::PortAllocatorFactoryInterface>
|
| + port_allocator_factory,
|
| TransportRole role);
|
| ~WebrtcTransportFactory() override;
|
|
|
| @@ -123,7 +124,8 @@
|
| private:
|
| rtc::Thread* worker_thread_;
|
| SignalStrategy* signal_strategy_;
|
| - scoped_ptr<PortAllocatorFactory> port_allocator_factory_;
|
| + rtc::scoped_refptr<webrtc::PortAllocatorFactoryInterface>
|
| + port_allocator_factory_;
|
| TransportRole role_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(WebrtcTransportFactory);
|
|
|