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

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

Issue 852513002: QUIC - minor cleanup changes to keep source in sync with internal source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@updates_quic_client_bin_cc_83518478
Patch Set: Created 5 years, 11 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 | « net/quic/quic_connection_test.cc ('k') | no next file » | 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/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "net/quic/quic_session.h" 8 #include "net/quic/quic_session.h"
9 9
10 using base::StringPiece; 10 using base::StringPiece;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 bool end) override { 137 bool end) override {
138 LOG(DFATAL) << "PUSH_PROMISE frame received from a SPDY/3 framer"; 138 LOG(DFATAL) << "PUSH_PROMISE frame received from a SPDY/3 framer";
139 CloseConnection("SPDY PUSH_PROMISE frame received."); 139 CloseConnection("SPDY PUSH_PROMISE frame received.");
140 } 140 }
141 141
142 void OnContinuation(SpdyStreamId stream_id, bool end) override { 142 void OnContinuation(SpdyStreamId stream_id, bool end) override {
143 CloseConnection("SPDY CONTINUATION frame received."); 143 CloseConnection("SPDY CONTINUATION frame received.");
144 } 144 }
145 145
146 bool OnUnknownFrame(SpdyStreamId stream_id, int frame_type) override { 146 bool OnUnknownFrame(SpdyStreamId stream_id, int frame_type) override {
147 CloseConnection("SPDY unknown frame received."); 147 CloseConnection("Unknown frame type received.");
148 return false; 148 return false;
149 } 149 }
150 150
151 // SpdyFramerDebugVisitorInterface implementation 151 // SpdyFramerDebugVisitorInterface implementation
152 void OnSendCompressedFrame(SpdyStreamId stream_id, 152 void OnSendCompressedFrame(SpdyStreamId stream_id,
153 SpdyFrameType type, 153 SpdyFrameType type,
154 size_t payload_len, 154 size_t payload_len,
155 size_t frame_len) override {} 155 size_t frame_len) override {}
156 156
157 void OnReceiveCompressedFrame(SpdyStreamId stream_id, 157 void OnReceiveCompressedFrame(SpdyStreamId stream_id,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 DCHECK_EQ(kInvalidStreamId, stream_id_); 268 DCHECK_EQ(kInvalidStreamId, stream_id_);
269 DCHECK_EQ(0u, frame_len_); 269 DCHECK_EQ(0u, frame_len_);
270 frame_len_ = frame_len; 270 frame_len_ = frame_len;
271 } 271 }
272 272
273 bool QuicHeadersStream::IsConnected() { 273 bool QuicHeadersStream::IsConnected() {
274 return session()->connection()->connected(); 274 return session()->connection()->connected();
275 } 275 }
276 276
277 } // namespace net 277 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_connection_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698