OLD | NEW |
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...) Loading... |
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 } |
OLD | NEW |