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

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

Issue 932723002: Land Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « net/quic/quic_flags.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 const QuicEncryptedPacket& encrypted, 299 const QuicEncryptedPacket& encrypted,
300 QuicConnectionIdLength connection_id_length, 300 QuicConnectionIdLength connection_id_length,
301 bool includes_version, 301 bool includes_version,
302 QuicSequenceNumberLength sequence_number_length); 302 QuicSequenceNumberLength sequence_number_length);
303 303
304 // Returns a QuicPacket* that is owned by the caller, is created from 304 // Returns a QuicPacket* that is owned by the caller, is created from
305 // |frames|. Returns nullptr if the packet could not be created. 305 // |frames|. Returns nullptr if the packet could not be created.
306 // The packet must be of size |packet_size|. 306 // The packet must be of size |packet_size|.
307 QuicPacket* BuildDataPacket(const QuicPacketHeader& header, 307 QuicPacket* BuildDataPacket(const QuicPacketHeader& header,
308 const QuicFrames& frames, 308 const QuicFrames& frames,
309 size_t packet_size); 309 char* buffer,
310 size_t packet_length);
310 311
311 // Returns a QuicPacket* that is owned by the caller, and is populated with 312 // Returns a QuicPacket* that is owned by the caller, and is populated with
312 // the fields in |header| and |fec|. Returns nullptr if the packet could 313 // the fields in |header| and |fec|. Returns nullptr if the packet could
313 // not be created. 314 // not be created.
314 QuicPacket* BuildFecPacket(const QuicPacketHeader& header, 315 QuicPacket* BuildFecPacket(const QuicPacketHeader& header,
315 const QuicFecData& fec); 316 const QuicFecData& fec);
316 317
317 // Returns a new public reset packet, owned by the caller. 318 // Returns a new public reset packet, owned by the caller.
318 static QuicEncryptedPacket* BuildPublicResetPacket( 319 static QuicEncryptedPacket* BuildPublicResetPacket(
319 const QuicPublicResetPacket& packet); 320 const QuicPublicResetPacket& packet);
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 // The time delta computed for the last timestamp frame. This is relative to 538 // The time delta computed for the last timestamp frame. This is relative to
538 // the creation_time. 539 // the creation_time.
539 QuicTime::Delta last_timestamp_; 540 QuicTime::Delta last_timestamp_;
540 541
541 DISALLOW_COPY_AND_ASSIGN(QuicFramer); 542 DISALLOW_COPY_AND_ASSIGN(QuicFramer);
542 }; 543 };
543 544
544 } // namespace net 545 } // namespace net
545 546
546 #endif // NET_QUIC_QUIC_FRAMER_H_ 547 #endif // NET_QUIC_QUIC_FRAMER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_flags.cc ('k') | net/quic/quic_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698