diff options
Diffstat (limited to 'content/renderer/p2p/p2p_transport_impl.h')
-rw-r--r-- | content/renderer/p2p/p2p_transport_impl.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/content/renderer/p2p/p2p_transport_impl.h b/content/renderer/p2p/p2p_transport_impl.h index d473614..2c8b947 100644 --- a/content/renderer/p2p/p2p_transport_impl.h +++ b/content/renderer/p2p/p2p_transport_impl.h @@ -10,7 +10,7 @@ #include "third_party/libjingle/source/talk/base/sigslot.h" #include "webkit/glue/p2p_transport.h" -class RenderView; +class P2PSocketDispatcher; namespace cricket { class Candidate; @@ -33,11 +33,16 @@ class P2PTransportImpl : public webkit_glue::P2PTransport, public sigslot::has_slots<> { public: // Create P2PTransportImpl using specified NetworkManager and - // PacketSocketFactory. Caller keeps ownership of |network_manager| - // and |socket_factory|. + // PacketSocketFactory. Takes ownership of |network_manager| and + // |socket_factory|. P2PTransportImpl(talk_base::NetworkManager* network_manager, talk_base::PacketSocketFactory* socket_factory); + // Creates P2PTransportImpl using specified + // P2PSocketDispatcher. This constructor creates IpcNetworkManager + // and IpcPacketSocketFactory, and keeps ownership of these objects. + P2PTransportImpl(P2PSocketDispatcher* socket_dispatcher); + virtual ~P2PTransportImpl(); // webkit_glue::P2PTransport interface. @@ -63,8 +68,8 @@ class P2PTransportImpl : public webkit_glue::P2PTransport, EventHandler* event_handler_; State state_; - talk_base::NetworkManager* network_manager_; - talk_base::PacketSocketFactory* socket_factory_; + scoped_ptr<talk_base::NetworkManager> network_manager_; + scoped_ptr<talk_base::PacketSocketFactory> socket_factory_; scoped_ptr<cricket::PortAllocator> allocator_; scoped_ptr<cricket::P2PTransportChannel> channel_; |