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

Side by Side Diff: content/browser/renderer_host/p2p/socket_dispatcher_host.h

Issue 193663003: Push remote hostname to P2P socket host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/browser/renderer_host/p2p/socket_dispatcher_host.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_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // Handlers for the messages coming from the renderer. 62 // Handlers for the messages coming from the renderer.
63 void OnStartNetworkNotifications(const IPC::Message& msg); 63 void OnStartNetworkNotifications(const IPC::Message& msg);
64 void OnStopNetworkNotifications(const IPC::Message& msg); 64 void OnStopNetworkNotifications(const IPC::Message& msg);
65 65
66 void OnGetHostAddress(const std::string& host_name, 66 void OnGetHostAddress(const std::string& host_name,
67 int32 request_id); 67 int32 request_id);
68 68
69 void OnCreateSocket(P2PSocketType type, 69 void OnCreateSocket(P2PSocketType type,
70 int socket_id, 70 int socket_id,
71 const net::IPEndPoint& local_address, 71 const net::IPEndPoint& local_address,
72 const net::IPEndPoint& remote_address); 72 const P2PHostAndIPEndPoint& remote_address);
73 void OnAcceptIncomingTcpConnection(int listen_socket_id, 73 void OnAcceptIncomingTcpConnection(int listen_socket_id,
74 const net::IPEndPoint& remote_address, 74 const net::IPEndPoint& remote_address,
75 int connected_socket_id); 75 int connected_socket_id);
76 void OnSend(int socket_id, 76 void OnSend(int socket_id,
77 const net::IPEndPoint& socket_address, 77 const net::IPEndPoint& socket_address,
78 const std::vector<char>& data, 78 const std::vector<char>& data,
79 const talk_base::PacketOptions& options, 79 const talk_base::PacketOptions& options,
80 uint64 packet_id); 80 uint64 packet_id);
81 void OnSetOption(int socket_id, P2PSocketOption option, int value); 81 void OnSetOption(int socket_id, P2PSocketOption option, int value);
82 void OnDestroySocket(int socket_id); 82 void OnDestroySocket(int socket_id);
(...skipping 13 matching lines...) Expand all
96 96
97 std::set<DnsRequest*> dns_requests_; 97 std::set<DnsRequest*> dns_requests_;
98 P2PMessageThrottler throttler_; 98 P2PMessageThrottler throttler_;
99 99
100 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost); 100 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost);
101 }; 101 };
102 102
103 } // namespace content 103 } // namespace content
104 104
105 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ 105 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/p2p/socket_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698