Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Side by Side Diff: net/quic/quic_headers_stream.cc

Issue 1413683005: Add new, unused methods to SpdyFramerVisitorInterface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile errors of flip_in_mem_edsm_server_unittests target. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | net/quic/quic_headers_stream_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
76 void OnError(SpdyFramer* framer) override { 86 void OnError(SpdyFramer* framer) override {
77 CloseConnection(base::StringPrintf( 87 CloseConnection(base::StringPrintf(
78 "SPDY framing error: %s", 88 "SPDY framing error: %s",
79 SpdyFramer::ErrorCodeToString(framer->error_code()))); 89 SpdyFramer::ErrorCodeToString(framer->error_code())));
80 } 90 }
81 91
82 void OnDataFrameHeader(SpdyStreamId stream_id, 92 void OnDataFrameHeader(SpdyStreamId stream_id,
83 size_t length, 93 size_t length,
84 bool fin) override { 94 bool fin) override {
85 CloseConnection("SPDY DATA frame received."); 95 CloseConnection("SPDY DATA frame received.");
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 318
309 void QuicHeadersStream::OnCompressedFrameSize(size_t frame_len) { 319 void QuicHeadersStream::OnCompressedFrameSize(size_t frame_len) {
310 frame_len_ += frame_len; 320 frame_len_ += frame_len;
311 } 321 }
312 322
313 bool QuicHeadersStream::IsConnected() { 323 bool QuicHeadersStream::IsConnected() {
314 return session()->connection()->connected(); 324 return session()->connection()->connected();
315 } 325 }
316 326
317 } // namespace net 327 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_headers_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698