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

Side by Side Diff: net/spdy/spdy_protocol.cc

Issue 199843005: Implement padding for SPDY4/HTTP2 DATA frames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nullptr => NULL & discard padding at SpdySession visitor call. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « net/spdy/spdy_protocol.h ('k') | net/spdy/spdy_session.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/spdy/spdy_protocol.h" 5 #include "net/spdy/spdy_protocol.h"
6 6
7 namespace net { 7 namespace net {
8 8
9 SpdyFrameWithNameValueBlockIR::SpdyFrameWithNameValueBlockIR( 9 SpdyFrameWithNameValueBlockIR::SpdyFrameWithNameValueBlockIR(
10 SpdyStreamId stream_id) : SpdyFrameWithFinIR(stream_id) {} 10 SpdyStreamId stream_id) : SpdyFrameWithFinIR(stream_id) {}
11 11
12 SpdyFrameWithNameValueBlockIR::~SpdyFrameWithNameValueBlockIR() {} 12 SpdyFrameWithNameValueBlockIR::~SpdyFrameWithNameValueBlockIR() {}
13 13
14 SpdyDataIR::SpdyDataIR(SpdyStreamId stream_id, const base::StringPiece& data) 14 SpdyDataIR::SpdyDataIR(SpdyStreamId stream_id, const base::StringPiece& data)
15 : SpdyFrameWithFinIR(stream_id) { 15 : SpdyFrameWithFinIR(stream_id),
16 pad_low_(false),
17 pad_high_(false),
18 padding_payload_len_(0) {
16 SetDataDeep(data); 19 SetDataDeep(data);
17 } 20 }
18 21
19 SpdyDataIR::SpdyDataIR(SpdyStreamId stream_id) 22 SpdyDataIR::SpdyDataIR(SpdyStreamId stream_id)
20 : SpdyFrameWithFinIR(stream_id) {} 23 : SpdyFrameWithFinIR(stream_id),
24 pad_low_(false),
25 pad_high_(false),
26 padding_payload_len_(0) {}
21 27
22 SpdyDataIR::~SpdyDataIR() {} 28 SpdyDataIR::~SpdyDataIR() {}
23 29
24 void SpdyDataIR::Visit(SpdyFrameVisitor* visitor) const { 30 void SpdyDataIR::Visit(SpdyFrameVisitor* visitor) const {
25 return visitor->VisitData(*this); 31 return visitor->VisitData(*this);
26 } 32 }
27 33
28 void SpdySynStreamIR::Visit(SpdyFrameVisitor* visitor) const { 34 void SpdySynStreamIR::Visit(SpdyFrameVisitor* visitor) const {
29 return visitor->VisitSynStream(*this); 35 return visitor->VisitSynStream(*this);
30 } 36 }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 99
94 void SpdyPushPromiseIR::Visit(SpdyFrameVisitor* visitor) const { 100 void SpdyPushPromiseIR::Visit(SpdyFrameVisitor* visitor) const {
95 return visitor->VisitPushPromise(*this); 101 return visitor->VisitPushPromise(*this);
96 } 102 }
97 103
98 void SpdyContinuationIR::Visit(SpdyFrameVisitor* visitor) const { 104 void SpdyContinuationIR::Visit(SpdyFrameVisitor* visitor) const {
99 return visitor->VisitContinuation(*this); 105 return visitor->VisitContinuation(*this);
100 } 106 }
101 107
102 } // namespace net 108 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_protocol.h ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698