| 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/metrics/histogram_macros.h" | 7 #include "base/metrics/histogram_macros.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "net/quic/quic_flags.h" | 9 #include "net/quic/quic_flags.h" |
| 10 #include "net/quic/quic_headers_stream.h" | 10 #include "net/quic/quic_headers_stream.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // that had the fin bit set. | 66 // that had the fin bit set. |
| 67 return; | 67 return; |
| 68 } | 68 } |
| 69 CloseConnection("SPDY DATA frame received."); | 69 CloseConnection("SPDY DATA frame received."); |
| 70 } | 70 } |
| 71 | 71 |
| 72 void OnStreamPadding(SpdyStreamId stream_id, size_t len) override { | 72 void OnStreamPadding(SpdyStreamId stream_id, size_t len) override { |
| 73 CloseConnection("SPDY frame padding received."); | 73 CloseConnection("SPDY frame padding received."); |
| 74 } | 74 } |
| 75 | 75 |
| 76 SpdyHeadersHandlerInterface* OnHeaderFrameStart( | |
| 77 SpdyStreamId stream_id) override { | |
| 78 LOG(FATAL); | |
| 79 return nullptr; | |
| 80 } | |
| 81 | |
| 82 void OnHeaderFrameEnd(SpdyStreamId stream_id, bool end_headers) override { | |
| 83 LOG(FATAL); | |
| 84 } | |
| 85 | |
| 86 void OnError(SpdyFramer* framer) override { | 76 void OnError(SpdyFramer* framer) override { |
| 87 CloseConnection(base::StringPrintf( | 77 CloseConnection(base::StringPrintf( |
| 88 "SPDY framing error: %s", | 78 "SPDY framing error: %s", |
| 89 SpdyFramer::ErrorCodeToString(framer->error_code()))); | 79 SpdyFramer::ErrorCodeToString(framer->error_code()))); |
| 90 } | 80 } |
| 91 | 81 |
| 92 void OnDataFrameHeader(SpdyStreamId stream_id, | 82 void OnDataFrameHeader(SpdyStreamId stream_id, |
| 93 size_t length, | 83 size_t length, |
| 94 bool fin) override { | 84 bool fin) override { |
| 95 CloseConnection("SPDY DATA frame received."); | 85 CloseConnection("SPDY DATA frame received."); |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 | 308 |
| 319 void QuicHeadersStream::OnCompressedFrameSize(size_t frame_len) { | 309 void QuicHeadersStream::OnCompressedFrameSize(size_t frame_len) { |
| 320 frame_len_ += frame_len; | 310 frame_len_ += frame_len; |
| 321 } | 311 } |
| 322 | 312 |
| 323 bool QuicHeadersStream::IsConnected() { | 313 bool QuicHeadersStream::IsConnected() { |
| 324 return session()->connection()->connected(); | 314 return session()->connection()->connected(); |
| 325 } | 315 } |
| 326 | 316 |
| 327 } // namespace net | 317 } // namespace net |
| OLD | NEW |