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

Unified Diff: remoting/protocol/webrtc_transport.h

Issue 1516163002: Reland of Removing references to webrtc::PortAllocatorFactoryInterface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/protocol/port_allocator_factory.h ('k') | remoting/protocol/webrtc_transport.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/webrtc_transport.h
diff --git a/remoting/protocol/webrtc_transport.h b/remoting/protocol/webrtc_transport.h
index afba35e5fbd61486e9a6dc397bd6a708e9a64efa..6fc79d72f43676c7b73bbdd583ed3e0260b8819e 100644
--- a/remoting/protocol/webrtc_transport.h
+++ b/remoting/protocol/webrtc_transport.h
@@ -6,11 +6,13 @@
#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"
@@ -27,8 +29,7 @@ class WebrtcTransport : public Transport,
public webrtc::PeerConnectionObserver {
public:
WebrtcTransport(rtc::Thread* worker_thread,
- rtc::scoped_refptr<webrtc::PortAllocatorFactoryInterface>
- port_allocator_factory,
+ PortAllocatorFactory* port_allocator_factory,
TransportRole role);
~WebrtcTransport() override;
@@ -79,8 +80,7 @@ class WebrtcTransport : public Transport,
base::ThreadChecker thread_checker_;
- rtc::scoped_refptr<webrtc::PortAllocatorFactoryInterface>
- port_allocator_factory_;
+ PortAllocatorFactory* port_allocator_factory_;
TransportRole role_;
EventHandler* event_handler_ = nullptr;
rtc::Thread* worker_thread_;
@@ -113,8 +113,7 @@ class WebrtcTransportFactory : public TransportFactory {
WebrtcTransportFactory(
rtc::Thread* worker_thread,
SignalStrategy* signal_strategy,
- rtc::scoped_refptr<webrtc::PortAllocatorFactoryInterface>
- port_allocator_factory,
+ scoped_ptr<PortAllocatorFactory> port_allocator_factory,
TransportRole role);
~WebrtcTransportFactory() override;
@@ -124,8 +123,7 @@ class WebrtcTransportFactory : public TransportFactory {
private:
rtc::Thread* worker_thread_;
SignalStrategy* signal_strategy_;
- rtc::scoped_refptr<webrtc::PortAllocatorFactoryInterface>
- port_allocator_factory_;
+ scoped_ptr<PortAllocatorFactory> port_allocator_factory_;
TransportRole role_;
DISALLOW_COPY_AND_ASSIGN(WebrtcTransportFactory);
« no previous file with comments | « remoting/protocol/port_allocator_factory.h ('k') | remoting/protocol/webrtc_transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698