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/quic/quic_headers_stream.h" | 5 #include "net/quic/quic_headers_stream.h" |
6 | 6 |
| 7 #include "base/macros.h" |
7 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
8 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
9 #include "net/quic/quic_flags.h" | 10 #include "net/quic/quic_flags.h" |
10 #include "net/quic/quic_headers_stream.h" | 11 #include "net/quic/quic_headers_stream.h" |
11 #include "net/quic/quic_spdy_session.h" | 12 #include "net/quic/quic_spdy_session.h" |
12 #include "net/quic/quic_time.h" | 13 #include "net/quic/quic_time.h" |
13 | 14 |
14 using base::StringPiece; | 15 using base::StringPiece; |
15 using net::HTTP2; | 16 using net::HTTP2; |
16 using net::SpdyFrameType; | 17 using net::SpdyFrameType; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 size_t length, | 94 size_t length, |
94 bool fin) override { | 95 bool fin) override { |
95 CloseConnection("SPDY DATA frame received."); | 96 CloseConnection("SPDY DATA frame received."); |
96 } | 97 } |
97 | 98 |
98 void OnRstStream(SpdyStreamId stream_id, | 99 void OnRstStream(SpdyStreamId stream_id, |
99 SpdyRstStreamStatus status) override { | 100 SpdyRstStreamStatus status) override { |
100 CloseConnection("SPDY RST_STREAM frame received."); | 101 CloseConnection("SPDY RST_STREAM frame received."); |
101 } | 102 } |
102 | 103 |
103 void OnSetting(SpdySettingsIds id, uint8 flags, uint32 value) override { | 104 void OnSetting(SpdySettingsIds id, uint8_t flags, uint32_t value) override { |
104 CloseConnection("SPDY SETTINGS frame received."); | 105 CloseConnection("SPDY SETTINGS frame received."); |
105 } | 106 } |
106 | 107 |
107 void OnSettingsAck() override { | 108 void OnSettingsAck() override { |
108 CloseConnection("SPDY SETTINGS frame received."); | 109 CloseConnection("SPDY SETTINGS frame received."); |
109 } | 110 } |
110 | 111 |
111 void OnSettingsEnd() override { | 112 void OnSettingsEnd() override { |
112 CloseConnection("SPDY SETTINGS frame received."); | 113 CloseConnection("SPDY SETTINGS frame received."); |
113 } | 114 } |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 | 333 |
333 void QuicHeadersStream::OnCompressedFrameSize(size_t frame_len) { | 334 void QuicHeadersStream::OnCompressedFrameSize(size_t frame_len) { |
334 frame_len_ += frame_len; | 335 frame_len_ += frame_len; |
335 } | 336 } |
336 | 337 |
337 bool QuicHeadersStream::IsConnected() { | 338 bool QuicHeadersStream::IsConnected() { |
338 return session()->connection()->connected(); | 339 return session()->connection()->connected(); |
339 } | 340 } |
340 | 341 |
341 } // namespace net | 342 } // namespace net |
OLD | NEW |