OLD | NEW |
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 "net/quic/chromium/quic_http_stream.h" | 5 #include "net/quic/chromium/quic_http_stream.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
11 #include "base/metrics/histogram_macros.h" | 11 #include "base/metrics/histogram_macros.h" |
12 #include "base/strings/string_split.h" | 12 #include "base/strings/string_split.h" |
13 #include "base/threading/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
14 #include "net/base/load_flags.h" | 14 #include "net/base/load_flags.h" |
15 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
16 #include "net/http/http_response_headers.h" | 16 #include "net/http/http_response_headers.h" |
17 #include "net/http/http_util.h" | 17 #include "net/http/http_util.h" |
18 #include "net/log/net_log_event_type.h" | 18 #include "net/log/net_log_event_type.h" |
19 #include "net/log/net_log_source.h" | 19 #include "net/log/net_log_source.h" |
20 #include "net/quic/chromium/quic_http_utils.h" | 20 #include "net/quic/chromium/quic_http_utils.h" |
21 #include "net/quic/core/quic_client_promised_info.h" | 21 #include "net/quic/core/quic_client_promised_info.h" |
22 #include "net/quic/core/quic_stream_sequencer.h" | 22 #include "net/quic/core/quic_stream_sequencer.h" |
23 #include "net/quic/core/quic_utils.h" | 23 #include "net/quic/core/quic_utils.h" |
24 #include "net/quic/core/spdy_utils.h" | 24 #include "net/quic/core/spdy_utils.h" |
25 #include "net/quic/platform/api/quic_string_piece.h" | 25 #include "net/quic/platform/api/quic_string_piece.h" |
26 #include "net/spdy/spdy_frame_builder.h" | 26 #include "net/spdy/chromium/spdy_http_utils.h" |
27 #include "net/spdy/spdy_framer.h" | 27 #include "net/spdy/core/spdy_frame_builder.h" |
28 #include "net/spdy/spdy_http_utils.h" | 28 #include "net/spdy/core/spdy_framer.h" |
29 #include "net/ssl/ssl_info.h" | 29 #include "net/ssl/ssl_info.h" |
30 | 30 |
31 namespace net { | 31 namespace net { |
32 | 32 |
33 namespace { | 33 namespace { |
34 | 34 |
35 std::unique_ptr<base::Value> NetLogQuicPushStreamCallback( | 35 std::unique_ptr<base::Value> NetLogQuicPushStreamCallback( |
36 QuicStreamId stream_id, | 36 QuicStreamId stream_id, |
37 const GURL* url, | 37 const GURL* url, |
38 NetLogCaptureMode capture_mode) { | 38 NetLogCaptureMode capture_mode) { |
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
888 quic_stream_error_ != QUIC_STREAM_CONNECTION_ERROR) { | 888 quic_stream_error_ != QUIC_STREAM_CONNECTION_ERROR) { |
889 return ERR_QUIC_PROTOCOL_ERROR; | 889 return ERR_QUIC_PROTOCOL_ERROR; |
890 } | 890 } |
891 | 891 |
892 DCHECK_NE(QUIC_HANDSHAKE_TIMEOUT, quic_connection_error_); | 892 DCHECK_NE(QUIC_HANDSHAKE_TIMEOUT, quic_connection_error_); |
893 | 893 |
894 return ERR_QUIC_PROTOCOL_ERROR; | 894 return ERR_QUIC_PROTOCOL_ERROR; |
895 } | 895 } |
896 | 896 |
897 } // namespace net | 897 } // namespace net |
OLD | NEW |