| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 class ChannelAdapter; | 61 class ChannelAdapter; |
| 62 | 62 |
| 63 void OnRequestSignaling(); | 63 void OnRequestSignaling(); |
| 64 void OnCandidateReady(cricket::TransportChannelImpl* channel, | 64 void OnCandidateReady(cricket::TransportChannelImpl* channel, |
| 65 const cricket::Candidate& candidate); | 65 const cricket::Candidate& candidate); |
| 66 void OnReadableState(cricket::TransportChannel* channel); | 66 void OnReadableState(cricket::TransportChannel* channel); |
| 67 void OnWriteableState(cricket::TransportChannel* channel); | 67 void OnWriteableState(cricket::TransportChannel* channel); |
| 68 | 68 |
| 69 std::string SerializeCandidate(const cricket::Candidate& candidate); | |
| 70 bool DeserializeCandidate(const std::string& address, | |
| 71 cricket::Candidate* candidate); | |
| 72 | |
| 73 void OnTcpConnected(int result); | 69 void OnTcpConnected(int result); |
| 74 | 70 |
| 75 std::string name_; | 71 std::string name_; |
| 76 EventHandler* event_handler_; | 72 EventHandler* event_handler_; |
| 77 State state_; | 73 State state_; |
| 78 | 74 |
| 79 scoped_ptr<talk_base::NetworkManager> network_manager_; | 75 scoped_ptr<talk_base::NetworkManager> network_manager_; |
| 80 scoped_ptr<talk_base::PacketSocketFactory> socket_factory_; | 76 scoped_ptr<talk_base::PacketSocketFactory> socket_factory_; |
| 81 | 77 |
| 82 scoped_ptr<cricket::PortAllocator> allocator_; | 78 scoped_ptr<cricket::PortAllocator> allocator_; |
| 83 scoped_ptr<cricket::P2PTransportChannel> channel_; | 79 scoped_ptr<cricket::P2PTransportChannel> channel_; |
| 84 | 80 |
| 85 scoped_ptr<jingle_glue::TransportChannelSocketAdapter> channel_adapter_; | 81 scoped_ptr<jingle_glue::TransportChannelSocketAdapter> channel_adapter_; |
| 86 scoped_ptr<jingle_glue::PseudoTcpAdapter> pseudo_tcp_adapter_; | 82 scoped_ptr<jingle_glue::PseudoTcpAdapter> pseudo_tcp_adapter_; |
| 87 | 83 |
| 88 net::CompletionCallbackImpl<P2PTransportImpl> connect_callback_; | 84 net::CompletionCallbackImpl<P2PTransportImpl> connect_callback_; |
| 89 | 85 |
| 90 DISALLOW_COPY_AND_ASSIGN(P2PTransportImpl); | 86 DISALLOW_COPY_AND_ASSIGN(P2PTransportImpl); |
| 91 }; | 87 }; |
| 92 | 88 |
| 93 #endif // CONTENT_RENDERER_P2P_P2P_TRANSPORT_IMPL_H_ | 89 #endif // CONTENT_RENDERER_P2P_P2P_TRANSPORT_IMPL_H_ |
| OLD | NEW |