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/quic_http_stream.h" | 5 #include "net/quic/quic_http_stream.h" |
6 | 6 |
7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
8 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "net/base/io_buffer.h" | 10 #include "net/base/io_buffer.h" |
11 #include "net/base/net_errors.h" | 11 #include "net/base/net_errors.h" |
12 #include "net/http/http_response_headers.h" | 12 #include "net/http/http_response_headers.h" |
13 #include "net/http/http_util.h" | 13 #include "net/http/http_util.h" |
14 #include "net/quic/quic_chromium_client_session.h" | 14 #include "net/quic/quic_chromium_client_session.h" |
| 15 #include "net/quic/quic_chromium_client_stream.h" |
15 #include "net/quic/quic_http_utils.h" | 16 #include "net/quic/quic_http_utils.h" |
16 #include "net/quic/quic_reliable_client_stream.h" | |
17 #include "net/quic/quic_utils.h" | 17 #include "net/quic/quic_utils.h" |
18 #include "net/quic/spdy_utils.h" | 18 #include "net/quic/spdy_utils.h" |
19 #include "net/socket/next_proto.h" | 19 #include "net/socket/next_proto.h" |
20 #include "net/spdy/spdy_frame_builder.h" | 20 #include "net/spdy/spdy_frame_builder.h" |
21 #include "net/spdy/spdy_framer.h" | 21 #include "net/spdy/spdy_framer.h" |
22 #include "net/spdy/spdy_http_utils.h" | 22 #include "net/spdy/spdy_http_utils.h" |
23 #include "net/ssl/ssl_info.h" | 23 #include "net/ssl/ssl_info.h" |
24 | 24 |
25 namespace net { | 25 namespace net { |
26 | 26 |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 closed_stream_sent_bytes_ = stream_->stream_bytes_written(); | 555 closed_stream_sent_bytes_ = stream_->stream_bytes_written(); |
556 stream_ = nullptr; | 556 stream_ = nullptr; |
557 | 557 |
558 // If |request_body_stream_| is non-NULL, Reset it, to abort any in progress | 558 // If |request_body_stream_| is non-NULL, Reset it, to abort any in progress |
559 // read. | 559 // read. |
560 if (request_body_stream_) | 560 if (request_body_stream_) |
561 request_body_stream_->Reset(); | 561 request_body_stream_->Reset(); |
562 } | 562 } |
563 | 563 |
564 } // namespace net | 564 } // namespace net |
OLD | NEW |