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

Side by Side Diff: content/renderer/p2p/p2p_transport_impl.h

Issue 7551034: Move P2P candidate serialization/deserialization to jingle/glue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 4 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/renderer/p2p/p2p_transport_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/p2p/p2p_transport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698