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

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

Issue 141953004: SPDY cleanup: remove credential slot. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix inadvertent rebase on upstream branches. Created 6 years, 10 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 | Annotate | Revision Log
« 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 "net/quic/quic_session.h" 7 #include "net/quic/quic_session.h"
8 #include "net/quic/quic_spdy_decompressor.h" 8 #include "net/quic/quic_spdy_decompressor.h"
9 9
10 using base::StringPiece; 10 using base::StringPiece;
(...skipping 12 matching lines...) Expand all
23 class QuicHeadersStream::SpdyFramerVisitor 23 class QuicHeadersStream::SpdyFramerVisitor
24 : public SpdyFramerVisitorInterface, 24 : public SpdyFramerVisitorInterface,
25 public SpdyFramerDebugVisitorInterface { 25 public SpdyFramerDebugVisitorInterface {
26 public: 26 public:
27 explicit SpdyFramerVisitor(QuicHeadersStream* stream) : stream_(stream) {} 27 explicit SpdyFramerVisitor(QuicHeadersStream* stream) : stream_(stream) {}
28 28
29 // SpdyFramerVisitorInterface implementation 29 // SpdyFramerVisitorInterface implementation
30 virtual void OnSynStream(SpdyStreamId stream_id, 30 virtual void OnSynStream(SpdyStreamId stream_id,
31 SpdyStreamId associated_stream_id, 31 SpdyStreamId associated_stream_id,
32 SpdyPriority priority, 32 SpdyPriority priority,
33 uint8 credential_slot,
34 bool fin, 33 bool fin,
35 bool unidirectional) OVERRIDE { 34 bool unidirectional) OVERRIDE {
36 if (!stream_->IsConnected()) { 35 if (!stream_->IsConnected()) {
37 return; 36 return;
38 } 37 }
39 38
40 if (associated_stream_id != 0) { 39 if (associated_stream_id != 0) {
41 CloseConnection("associated_stream_id != 0"); 40 CloseConnection("associated_stream_id != 0");
42 return; 41 return;
43 } 42 }
44 43
45 if (credential_slot != 0) {
46 CloseConnection("credential_slot != 0");
47 return;
48 }
49
50 if (unidirectional != 0) { 44 if (unidirectional != 0) {
51 CloseConnection("unidirectional != 0"); 45 CloseConnection("unidirectional != 0");
52 return; 46 return;
53 } 47 }
54 48
55 stream_->OnSynStream(stream_id, priority, fin); 49 stream_->OnSynStream(stream_id, priority, fin);
56 } 50 }
57 51
58 virtual void OnSynReply(SpdyStreamId stream_id, bool fin) OVERRIDE { 52 virtual void OnSynReply(SpdyStreamId stream_id, bool fin) OVERRIDE {
59 if (!stream_->IsConnected()) { 53 if (!stream_->IsConnected()) {
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 DCHECK_EQ(kInvalidStreamId, stream_id_); 240 DCHECK_EQ(kInvalidStreamId, stream_id_);
247 DCHECK_EQ(0u, frame_len_); 241 DCHECK_EQ(0u, frame_len_);
248 frame_len_ = frame_len; 242 frame_len_ = frame_len;
249 } 243 }
250 244
251 bool QuicHeadersStream::IsConnected() { 245 bool QuicHeadersStream::IsConnected() {
252 return session()->connection()->connected(); 246 return session()->connection()->connected();
253 } 247 }
254 248
255 } // namespace net 249 } // 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