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

Side by Side Diff: net/server/http_listen_socket.cc

Issue 5574006: Start deinlining non-empty virtual methods. (This will be automatically checked (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove virtual from VideoFrame::type() Created 10 years 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 | « net/server/http_listen_socket.h ('k') | net/socket/socks_client_socket_pool.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifdef _WIN32 5 #ifdef _WIN32
6 #include <winsock2.h> 6 #include <winsock2.h>
7 #else 7 #else
8 #include <arpa/inet.h> 8 #include <arpa/inet.h>
9 #endif 9 #endif
10 10
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 return false; 303 return false;
304 case ST_ERR: 304 case ST_ERR:
305 return false; 305 return false;
306 } 306 }
307 } 307 }
308 } 308 }
309 // No more characters, but we haven't finished parsing yet. 309 // No more characters, but we haven't finished parsing yet.
310 return false; 310 return false;
311 } 311 }
312 312
313 void HttpListenSocket::Close() {
314 ListenSocket::Close();
315 }
316
317 void HttpListenSocket::Listen() {
318 ListenSocket::Listen();
319 }
320
313 void HttpListenSocket::DidAccept(ListenSocket* server, 321 void HttpListenSocket::DidAccept(ListenSocket* server,
314 ListenSocket* connection) { 322 ListenSocket* connection) {
315 connection->AddRef(); 323 connection->AddRef();
316 } 324 }
317 325
318 void HttpListenSocket::DidRead(ListenSocket*, 326 void HttpListenSocket::DidRead(ListenSocket*,
319 const char* data, 327 const char* data,
320 int len) { 328 int len) {
321 recv_data_.append(data, len); 329 recv_data_.append(data, len);
322 while (recv_data_.length()) { 330 while (recv_data_.length()) {
(...skipping 17 matching lines...) Expand all
340 } 348 }
341 } 349 }
342 delegate_->OnHttpRequest(this, request); 350 delegate_->OnHttpRequest(this, request);
343 } 351 }
344 } 352 }
345 353
346 void HttpListenSocket::DidClose(ListenSocket* sock) { 354 void HttpListenSocket::DidClose(ListenSocket* sock) {
347 sock->Release(); 355 sock->Release();
348 delegate_->OnClose(this); 356 delegate_->OnClose(this);
349 } 357 }
OLDNEW
« no previous file with comments | « net/server/http_listen_socket.h ('k') | net/socket/socks_client_socket_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698