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

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

Issue 9521011: Remove the origin field from the CREDENTIAL frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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_http_stream_unittest.cc ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This file contains some protocol structures for use with Spdy. 5 // This file contains some protocol structures for use with Spdy.
6 6
7 #ifndef NET_SPDY_SPDY_PROTOCOL_H_ 7 #ifndef NET_SPDY_SPDY_PROTOCOL_H_
8 #define NET_SPDY_SPDY_PROTOCOL_H_ 8 #define NET_SPDY_SPDY_PROTOCOL_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // +----------------------------------+ 123 // +----------------------------------+
124 // | Delta-Window-Size (32 bits) | 124 // | Delta-Window-Size (32 bits) |
125 // +----------------------------------+ 125 // +----------------------------------+
126 // 126 //
127 // Control Frame: CREDENTIAL 127 // Control Frame: CREDENTIAL
128 // +----------------------------------+ 128 // +----------------------------------+
129 // |1|000000000000001|0000000000001010| 129 // |1|000000000000001|0000000000001010|
130 // +----------------------------------+ 130 // +----------------------------------+
131 // | flags (8) | Length (24 bits) | >= 12 131 // | flags (8) | Length (24 bits) | >= 12
132 // +----------------------------------+ 132 // +----------------------------------+
133 // | Slot (16 bits) | Origin Len (16)| 133 // | Slot (16 bits) | |
134 // +----------------------------------+ 134 // +-----------------+ |
135 // | Origin |
136 // +----------------------------------+
137 // | Proof Length (32 bits) | 135 // | Proof Length (32 bits) |
138 // +----------------------------------+ 136 // +----------------------------------+
139 // | Proof | 137 // | Proof |
140 // +----------------------------------+ <+ 138 // +----------------------------------+ <+
141 // | Certificate Length (32 bits) | | 139 // | Certificate Length (32 bits) | |
142 // +----------------------------------+ | Repeated until end of frame 140 // +----------------------------------+ | Repeated until end of frame
143 // | Certificate | | 141 // | Certificate | |
144 // +----------------------------------+ <+ 142 // +----------------------------------+ <+
145 // 143 //
146 namespace spdy { 144 namespace spdy {
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 }; 305 };
308 306
309 // A PING Control Frame structure. 307 // A PING Control Frame structure.
310 struct SpdyPingControlFrameBlock : SpdyFrameBlock { 308 struct SpdyPingControlFrameBlock : SpdyFrameBlock {
311 uint32 unique_id_; 309 uint32 unique_id_;
312 }; 310 };
313 311
314 // A CREDENTIAL Control Frame structure. 312 // A CREDENTIAL Control Frame structure.
315 struct SpdyCredentialControlFrameBlock : SpdyFrameBlock { 313 struct SpdyCredentialControlFrameBlock : SpdyFrameBlock {
316 uint16 slot_; 314 uint16 slot_;
317 uint16 origin_len_;
318 uint32 proof_len_; 315 uint32 proof_len_;
319 // Variable data here. 316 // Variable data here.
320 // origin data
321 // proof data 317 // proof data
322 // for each certificate: unit32 certificate_len + certificate_data[i] 318 // for each certificate: unit32 certificate_len + certificate_data[i]
323 }; 319 };
324 320
325 // A GOAWAY Control Frame structure. 321 // A GOAWAY Control Frame structure.
326 struct SpdyGoAwayControlFrameBlock : SpdyFrameBlock { 322 struct SpdyGoAwayControlFrameBlock : SpdyFrameBlock {
327 SpdyStreamId last_accepted_stream_id_; 323 SpdyStreamId last_accepted_stream_id_;
328 }; 324 };
329 325
330 // A HEADERS Control Frame structure. 326 // A HEADERS Control Frame structure.
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 struct SpdyWindowUpdateControlFrameBlock* mutable_block() { 831 struct SpdyWindowUpdateControlFrameBlock* mutable_block() {
836 return static_cast<SpdyWindowUpdateControlFrameBlock*>(frame_); 832 return static_cast<SpdyWindowUpdateControlFrameBlock*>(frame_);
837 } 833 }
838 834
839 DISALLOW_COPY_AND_ASSIGN(SpdyWindowUpdateControlFrame); 835 DISALLOW_COPY_AND_ASSIGN(SpdyWindowUpdateControlFrame);
840 }; 836 };
841 837
842 } // namespace spdy 838 } // namespace spdy
843 839
844 #endif // NET_SPDY_SPDY_PROTOCOL_H_ 840 #endif // NET_SPDY_SPDY_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_http_stream_unittest.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698