| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "net/websockets/websocket_channel.h" | 5 #include "net/websockets/websocket_channel.h" |
| 6 | 6 |
| 7 #include <limits.h> // for INT_MAX | 7 #include <limits.h> // for INT_MAX |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "base/metrics/histogram_macros.h" | 21 #include "base/metrics/histogram_macros.h" |
| 22 #include "base/numerics/safe_conversions.h" | 22 #include "base/numerics/safe_conversions.h" |
| 23 #include "base/single_thread_task_runner.h" | 23 #include "base/single_thread_task_runner.h" |
| 24 #include "base/strings/stringprintf.h" | 24 #include "base/strings/stringprintf.h" |
| 25 #include "base/threading/thread_task_runner_handle.h" | 25 #include "base/threading/thread_task_runner_handle.h" |
| 26 #include "base/time/time.h" | 26 #include "base/time/time.h" |
| 27 #include "net/base/io_buffer.h" | 27 #include "net/base/io_buffer.h" |
| 28 #include "net/http/http_request_headers.h" | 28 #include "net/http/http_request_headers.h" |
| 29 #include "net/http/http_response_headers.h" | 29 #include "net/http/http_response_headers.h" |
| 30 #include "net/http/http_util.h" | 30 #include "net/http/http_util.h" |
| 31 #include "net/log/net_log.h" | 31 #include "net/log/net_log_with_source.h" |
| 32 #include "net/websockets/websocket_errors.h" | 32 #include "net/websockets/websocket_errors.h" |
| 33 #include "net/websockets/websocket_event_interface.h" | 33 #include "net/websockets/websocket_event_interface.h" |
| 34 #include "net/websockets/websocket_frame.h" | 34 #include "net/websockets/websocket_frame.h" |
| 35 #include "net/websockets/websocket_handshake_request_info.h" | 35 #include "net/websockets/websocket_handshake_request_info.h" |
| 36 #include "net/websockets/websocket_handshake_response_info.h" | 36 #include "net/websockets/websocket_handshake_response_info.h" |
| 37 #include "net/websockets/websocket_handshake_stream_create_helper.h" | 37 #include "net/websockets/websocket_handshake_stream_create_helper.h" |
| 38 #include "net/websockets/websocket_mux.h" | 38 #include "net/websockets/websocket_mux.h" |
| 39 #include "net/websockets/websocket_stream.h" | 39 #include "net/websockets/websocket_stream.h" |
| 40 #include "url/origin.h" | 40 #include "url/origin.h" |
| 41 | 41 |
| (...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1181 } | 1181 } |
| 1182 | 1182 |
| 1183 void WebSocketChannel::CloseTimeout() { | 1183 void WebSocketChannel::CloseTimeout() { |
| 1184 stream_->Close(); | 1184 stream_->Close(); |
| 1185 SetState(CLOSED); | 1185 SetState(CLOSED); |
| 1186 DoDropChannel(false, kWebSocketErrorAbnormalClosure, ""); | 1186 DoDropChannel(false, kWebSocketErrorAbnormalClosure, ""); |
| 1187 // |this| has been deleted. | 1187 // |this| has been deleted. |
| 1188 } | 1188 } |
| 1189 | 1189 |
| 1190 } // namespace net | 1190 } // namespace net |
| OLD | NEW |