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

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

Issue 1749203002: Added new method OnStreamEnd to SpdyFramerVisitorInterface, stubbed implementations, No functional … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@115342288
Patch Set: Revert to Patch Set 1 Created 4 years, 9 months 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/macros.h" 7 #include "base/macros.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/quic/quic_bug_tracker.h" 10 #include "net/quic/quic_bug_tracker.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 bool fin) override { 58 bool fin) override {
59 if (fin && len == 0) { 59 if (fin && len == 0) {
60 // The framer invokes OnStreamFrameData with zero-length data and 60 // The framer invokes OnStreamFrameData with zero-length data and
61 // fin = true after processing a SYN_STREAM or SYN_REPLY frame 61 // fin = true after processing a SYN_STREAM or SYN_REPLY frame
62 // that had the fin bit set. 62 // that had the fin bit set.
63 return; 63 return;
64 } 64 }
65 CloseConnection("SPDY DATA frame received."); 65 CloseConnection("SPDY DATA frame received.");
66 } 66 }
67 67
68 void OnStreamEnd(SpdyStreamId stream_id) override {
69 LOG(DFATAL) << "Unimplemented.";
70 }
71
68 void OnStreamPadding(SpdyStreamId stream_id, size_t len) override { 72 void OnStreamPadding(SpdyStreamId stream_id, size_t len) override {
69 CloseConnection("SPDY frame padding received."); 73 CloseConnection("SPDY frame padding received.");
70 } 74 }
71 75
72 SpdyHeadersHandlerInterface* OnHeaderFrameStart( 76 SpdyHeadersHandlerInterface* OnHeaderFrameStart(
73 SpdyStreamId stream_id) override { 77 SpdyStreamId stream_id) override {
74 LOG(FATAL); 78 LOG(FATAL);
75 return nullptr; 79 return nullptr;
76 } 80 }
77 81
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 359
356 void QuicHeadersStream::OnCompressedFrameSize(size_t frame_len) { 360 void QuicHeadersStream::OnCompressedFrameSize(size_t frame_len) {
357 frame_len_ += frame_len; 361 frame_len_ += frame_len;
358 } 362 }
359 363
360 bool QuicHeadersStream::IsConnected() { 364 bool QuicHeadersStream::IsConnected() {
361 return session()->connection()->connected(); 365 return session()->connection()->connected();
362 } 366 }
363 367
364 } // namespace net 368 } // 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