Chromium Code Reviews

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

Issue 5786004: Fix HttpListenSocket. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 334 matching lines...)
345 if (!key1.empty() && !key2.empty()) { 345 if (!key1.empty() && !key2.empty()) {
346 delegate_->OnWebSocketRequest(this, request); 346 delegate_->OnWebSocketRequest(this, request);
347 continue; 347 continue;
348 } 348 }
349 } 349 }
350 delegate_->OnHttpRequest(this, request); 350 delegate_->OnHttpRequest(this, request);
351 } 351 }
352 } 352 }
353 353
354 void HttpListenSocket::DidClose(ListenSocket* sock) { 354 void HttpListenSocket::DidClose(ListenSocket* sock) {
355 delegate_->OnClose(this);
355 sock->Release(); 356 sock->Release();
356 delegate_->OnClose(this);
357 } 357 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine