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

Side by Side Diff: net/quic/quic_framer.h

Issue 312553003: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/quic/quic_flow_controller_test.cc ('k') | net/quic/quic_framer.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 #ifndef NET_QUIC_QUIC_FRAMER_H_ 5 #ifndef NET_QUIC_QUIC_FRAMER_H_
6 #define NET_QUIC_QUIC_FRAMER_H_ 6 #define NET_QUIC_QUIC_FRAMER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 299
300 // Returns the associated data from the encrypted packet |encrypted| as a 300 // Returns the associated data from the encrypted packet |encrypted| as a
301 // stringpiece. 301 // stringpiece.
302 static base::StringPiece GetAssociatedDataFromEncryptedPacket( 302 static base::StringPiece GetAssociatedDataFromEncryptedPacket(
303 const QuicEncryptedPacket& encrypted, 303 const QuicEncryptedPacket& encrypted,
304 QuicConnectionIdLength connection_id_length, 304 QuicConnectionIdLength connection_id_length,
305 bool includes_version, 305 bool includes_version,
306 QuicSequenceNumberLength sequence_number_length); 306 QuicSequenceNumberLength sequence_number_length);
307 307
308 // Returns a SerializedPacket whose |packet| member is owned by the caller, 308 // Returns a SerializedPacket whose |packet| member is owned by the caller,
309 // and is populated with the fields in |header| and |frames|, or is NULL if
310 // the packet could not be created.
311 // TODO(ianswett): Used for testing only.
312 SerializedPacket BuildUnsizedDataPacket(const QuicPacketHeader& header,
313 const QuicFrames& frames);
314
315 // Returns a SerializedPacket whose |packet| member is owned by the caller,
316 // is created from the first |num_frames| frames, or is NULL if the packet 309 // is created from the first |num_frames| frames, or is NULL if the packet
317 // could not be created. The packet must be of size |packet_size|. 310 // could not be created. The packet must be of size |packet_size|.
318 SerializedPacket BuildDataPacket(const QuicPacketHeader& header, 311 SerializedPacket BuildDataPacket(const QuicPacketHeader& header,
319 const QuicFrames& frames, 312 const QuicFrames& frames,
320 size_t packet_size); 313 size_t packet_size);
321 314
322 // Returns a SerializedPacket whose |packet| member is owned by the caller, 315 // Returns a SerializedPacket whose |packet| member is owned by the caller,
323 // and is populated with the fields in |header| and |fec|, or is NULL if the 316 // and is populated with the fields in |header| and |fec|, or is NULL if the
324 // packet could not be created. 317 // packet could not be created.
325 SerializedPacket BuildFecPacket(const QuicPacketHeader& header, 318 SerializedPacket BuildFecPacket(const QuicPacketHeader& header,
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 // The time this frames was created. Time written to the wire will be 530 // The time this frames was created. Time written to the wire will be
538 // written as a delta from this value. 531 // written as a delta from this value.
539 QuicTime creation_time_; 532 QuicTime creation_time_;
540 533
541 DISALLOW_COPY_AND_ASSIGN(QuicFramer); 534 DISALLOW_COPY_AND_ASSIGN(QuicFramer);
542 }; 535 };
543 536
544 } // namespace net 537 } // namespace net
545 538
546 #endif // NET_QUIC_QUIC_FRAMER_H_ 539 #endif // NET_QUIC_QUIC_FRAMER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_flow_controller_test.cc ('k') | net/quic/quic_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698