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

Side by Side Diff: content/browser/renderer_host/p2p/socket_host_tcp_server.cc

Issue 184813006: Relanding PacketOptions CL after revert (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
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 #include "content/browser/renderer_host/p2p/socket_host_tcp_server.h" 5 #include "content/browser/renderer_host/p2p/socket_host_tcp_server.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "content/browser/renderer_host/p2p/socket_host_tcp.h" 10 #include "content/browser/renderer_host/p2p/socket_host_tcp.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 } 109 }
110 110
111 void P2PSocketHostTcpServer::OnAccepted(int result) { 111 void P2PSocketHostTcpServer::OnAccepted(int result) {
112 HandleAcceptResult(result); 112 HandleAcceptResult(result);
113 if (result == net::OK) 113 if (result == net::OK)
114 DoAccept(); 114 DoAccept();
115 } 115 }
116 116
117 void P2PSocketHostTcpServer::Send(const net::IPEndPoint& to, 117 void P2PSocketHostTcpServer::Send(const net::IPEndPoint& to,
118 const std::vector<char>& data, 118 const std::vector<char>& data,
119 net::DiffServCodePoint dscp, 119 const talk_base::PacketOptions& options,
120 uint64 packet_id) { 120 uint64 packet_id) {
121 NOTREACHED(); 121 NOTREACHED();
122 OnError(); 122 OnError();
123 } 123 }
124 124
125 P2PSocketHost* P2PSocketHostTcpServer::AcceptIncomingTcpConnection( 125 P2PSocketHost* P2PSocketHostTcpServer::AcceptIncomingTcpConnection(
126 const net::IPEndPoint& remote_address, int id) { 126 const net::IPEndPoint& remote_address, int id) {
127 AcceptedSocketsMap::iterator it = accepted_sockets_.find(remote_address); 127 AcceptedSocketsMap::iterator it = accepted_sockets_.find(remote_address);
128 if (it == accepted_sockets_.end()) 128 if (it == accepted_sockets_.end())
129 return NULL; 129 return NULL;
(...skipping 13 matching lines...) Expand all
143 return result.release(); 143 return result.release();
144 } 144 }
145 145
146 bool P2PSocketHostTcpServer::SetOption(P2PSocketOption option, 146 bool P2PSocketHostTcpServer::SetOption(P2PSocketOption option,
147 int value) { 147 int value) {
148 // Currently we don't have use case tcp server sockets are used for p2p. 148 // Currently we don't have use case tcp server sockets are used for p2p.
149 return false; 149 return false;
150 } 150 }
151 151
152 } // namespace content 152 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698