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

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

Issue 1405963021: Add support for default local address in IpcNetworkManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix a sizeof Created 5 years, 1 month 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
« no previous file with comments | « content/renderer/p2p/network_list_observer.h ('k') | content/renderer/p2p/socket_dispatcher.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 // P2PSocketDispatcher is a per-renderer object that dispatchers all 5 // P2PSocketDispatcher is a per-renderer object that dispatchers all
6 // P2P messages received from the browser and relays all P2P messages 6 // P2P messages received from the browser and relays all P2P messages
7 // sent to the browser. P2PSocketClient instances register themselves 7 // sent to the browser. P2PSocketClient instances register themselves
8 // with the dispatcher using RegisterClient() and UnregisterClient(). 8 // with the dispatcher using RegisterClient() and UnregisterClient().
9 // 9 //
10 // Relationship of classes. 10 // Relationship of classes.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Called by P2PSocketClient. 86 // Called by P2PSocketClient.
87 int RegisterClient(P2PSocketClientImpl* client); 87 int RegisterClient(P2PSocketClientImpl* client);
88 void UnregisterClient(int id); 88 void UnregisterClient(int id);
89 void SendP2PMessage(IPC::Message* msg); 89 void SendP2PMessage(IPC::Message* msg);
90 90
91 // Called by DnsRequest. 91 // Called by DnsRequest.
92 int RegisterHostAddressRequest(P2PAsyncAddressResolver* request); 92 int RegisterHostAddressRequest(P2PAsyncAddressResolver* request);
93 void UnregisterHostAddressRequest(int id); 93 void UnregisterHostAddressRequest(int id);
94 94
95 // Incoming message handlers. 95 // Incoming message handlers.
96 void OnNetworkListChanged(const net::NetworkInterfaceList& networks); 96 void OnNetworkListChanged(
97 const net::NetworkInterfaceList& networks,
98 const net::IPAddressNumber& default_ipv4_local_address,
99 const net::IPAddressNumber& default_ipv6_local_address);
97 void OnGetHostAddressResult(int32 request_id, 100 void OnGetHostAddressResult(int32 request_id,
98 const net::IPAddressList& addresses); 101 const net::IPAddressList& addresses);
99 void OnSocketCreated(int socket_id, 102 void OnSocketCreated(int socket_id,
100 const net::IPEndPoint& local_address, 103 const net::IPEndPoint& local_address,
101 const net::IPEndPoint& remote_address); 104 const net::IPEndPoint& remote_address);
102 void OnIncomingTcpConnection(int socket_id, const net::IPEndPoint& address); 105 void OnIncomingTcpConnection(int socket_id, const net::IPEndPoint& address);
103 void OnSendComplete(int socket_id, const P2PSendPacketMetrics& send_metrics); 106 void OnSendComplete(int socket_id, const P2PSendPacketMetrics& send_metrics);
104 void OnError(int socket_id); 107 void OnError(int socket_id);
105 void OnDataReceived(int socket_id, const net::IPEndPoint& address, 108 void OnDataReceived(int socket_id, const net::IPEndPoint& address,
106 const std::vector<char>& data, 109 const std::vector<char>& data,
(...skipping 14 matching lines...) Expand all
121 124
122 // To indicate whether IPC could be invoked on this dispatcher. 125 // To indicate whether IPC could be invoked on this dispatcher.
123 bool connected_ = false; 126 bool connected_ = false;
124 127
125 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcher); 128 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcher);
126 }; 129 };
127 130
128 } // namespace content 131 } // namespace content
129 132
130 #endif // CONTENT_RENDERER_P2P_SOCKET_DISPATCHER_H_ 133 #endif // CONTENT_RENDERER_P2P_SOCKET_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/renderer/p2p/network_list_observer.h ('k') | content/renderer/p2p/socket_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698