| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_RENDERER_P2P_P2P_TRANSPORT_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_P2P_P2P_TRANSPORT_IMPL_H_ |
| 6 #define CONTENT_RENDERER_P2P_P2P_TRANSPORT_IMPL_H_ | 6 #define CONTENT_RENDERER_P2P_P2P_TRANSPORT_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // Creates P2PTransportImpl using specified | 47 // Creates P2PTransportImpl using specified |
| 48 // P2PSocketDispatcher. This constructor creates IpcNetworkManager | 48 // P2PSocketDispatcher. This constructor creates IpcNetworkManager |
| 49 // and IpcPacketSocketFactory, and keeps ownership of these objects. | 49 // and IpcPacketSocketFactory, and keeps ownership of these objects. |
| 50 explicit P2PTransportImpl(P2PSocketDispatcher* socket_dispatcher); | 50 explicit P2PTransportImpl(P2PSocketDispatcher* socket_dispatcher); |
| 51 | 51 |
| 52 virtual ~P2PTransportImpl(); | 52 virtual ~P2PTransportImpl(); |
| 53 | 53 |
| 54 // webkit_glue::P2PTransport interface. | 54 // webkit_glue::P2PTransport interface. |
| 55 virtual bool Init(const std::string& name, | 55 virtual bool Init(const std::string& name, |
| 56 Protocol protocol, | 56 Protocol protocol, |
| 57 const std::string& config, | 57 const Config& config, |
| 58 EventHandler* event_handler) OVERRIDE; | 58 EventHandler* event_handler) OVERRIDE; |
| 59 virtual bool AddRemoteCandidate(const std::string& address) OVERRIDE; | 59 virtual bool AddRemoteCandidate(const std::string& address) OVERRIDE; |
| 60 virtual net::Socket* GetChannel() OVERRIDE; | 60 virtual net::Socket* GetChannel() OVERRIDE; |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 class ChannelAdapter; | 63 class ChannelAdapter; |
| 64 | 64 |
| 65 void OnRequestSignaling(); | 65 void OnRequestSignaling(); |
| 66 void OnCandidateReady(cricket::TransportChannelImpl* channel, | 66 void OnCandidateReady(cricket::TransportChannelImpl* channel, |
| 67 const cricket::Candidate& candidate); | 67 const cricket::Candidate& candidate); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 84 scoped_ptr<jingle_glue::PseudoTcpAdapter> pseudo_tcp_adapter_; | 84 scoped_ptr<jingle_glue::PseudoTcpAdapter> pseudo_tcp_adapter_; |
| 85 | 85 |
| 86 net::CompletionCallbackImpl<P2PTransportImpl> connect_callback_; | 86 net::CompletionCallbackImpl<P2PTransportImpl> connect_callback_; |
| 87 | 87 |
| 88 DISALLOW_COPY_AND_ASSIGN(P2PTransportImpl); | 88 DISALLOW_COPY_AND_ASSIGN(P2PTransportImpl); |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 } // namespace content | 91 } // namespace content |
| 92 | 92 |
| 93 #endif // CONTENT_RENDERER_P2P_P2P_TRANSPORT_IMPL_H_ | 93 #endif // CONTENT_RENDERER_P2P_P2P_TRANSPORT_IMPL_H_ |
| OLD | NEW |