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

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

Issue 450463002: Update webrtc&libjingle 6774:6825. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 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 | « content/renderer/p2p/ipc_socket_factory.cc ('k') | content/renderer/p2p/port_allocator.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PORT_ALLOCATOR_H_ 5 #ifndef CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_
6 #define CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ 6 #define CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "net/base/net_util.h" 10 #include "net/base/net_util.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 std::vector<RelayServerConfig> relays; 50 std::vector<RelayServerConfig> relays;
51 51
52 bool legacy_relay; 52 bool legacy_relay;
53 // Disable TCP-based transport when set to true. 53 // Disable TCP-based transport when set to true.
54 bool disable_tcp_transport; 54 bool disable_tcp_transport;
55 }; 55 };
56 56
57 P2PPortAllocator(blink::WebFrame* web_frame, 57 P2PPortAllocator(blink::WebFrame* web_frame,
58 P2PSocketDispatcher* socket_dispatcher, 58 P2PSocketDispatcher* socket_dispatcher,
59 talk_base::NetworkManager* network_manager, 59 rtc::NetworkManager* network_manager,
60 talk_base::PacketSocketFactory* socket_factory, 60 rtc::PacketSocketFactory* socket_factory,
61 const Config& config); 61 const Config& config);
62 virtual ~P2PPortAllocator(); 62 virtual ~P2PPortAllocator();
63 63
64 virtual cricket::PortAllocatorSession* CreateSessionInternal( 64 virtual cricket::PortAllocatorSession* CreateSessionInternal(
65 const std::string& content_name, 65 const std::string& content_name,
66 int component, 66 int component,
67 const std::string& ice_username_fragment, 67 const std::string& ice_username_fragment,
68 const std::string& ice_password) OVERRIDE; 68 const std::string& ice_password) OVERRIDE;
69 69
70 private: 70 private:
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 void AllocateLegacyRelaySession(); 108 void AllocateLegacyRelaySession();
109 void ParseRelayResponse(); 109 void ParseRelayResponse();
110 110
111 void AddConfig(); 111 void AddConfig();
112 112
113 P2PPortAllocator* allocator_; 113 P2PPortAllocator* allocator_;
114 114
115 scoped_ptr<blink::WebURLLoader> relay_session_request_; 115 scoped_ptr<blink::WebURLLoader> relay_session_request_;
116 int relay_session_attempts_; 116 int relay_session_attempts_;
117 std::string relay_session_response_; 117 std::string relay_session_response_;
118 talk_base::SocketAddress relay_ip_; 118 rtc::SocketAddress relay_ip_;
119 int relay_udp_port_; 119 int relay_udp_port_;
120 int relay_tcp_port_; 120 int relay_tcp_port_;
121 int relay_ssltcp_port_; 121 int relay_ssltcp_port_;
122 int pending_relay_requests_; 122 int pending_relay_requests_;
123 123
124 DISALLOW_COPY_AND_ASSIGN(P2PPortAllocatorSession); 124 DISALLOW_COPY_AND_ASSIGN(P2PPortAllocatorSession);
125 }; 125 };
126 126
127 } // namespace content 127 } // namespace content
128 128
129 #endif // CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ 129 #endif // CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_
OLDNEW
« no previous file with comments | « content/renderer/p2p/ipc_socket_factory.cc ('k') | content/renderer/p2p/port_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698