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

Unified Diff: net/quic/core/quic_framer.h

Issue 2547583002: Landing Recent QUIC changes until Fri Nov 18 23:21:04 2016 +0000 (Closed)
Patch Set: Remove explicit HTTP/2 enum usage Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/core/quic_frame_list.h ('k') | net/quic/core/quic_framer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_framer.h
diff --git a/net/quic/core/quic_framer.h b/net/quic/core/quic_framer.h
index 0eb341a2f9fc2b0830c65fee697876d2afe1a3dd..60d71d8f1ecf658c81e2a5323c13dd6991bae72a 100644
--- a/net/quic/core/quic_framer.h
+++ b/net/quic/core/quic_framer.h
@@ -18,7 +18,7 @@
#include "base/macros.h"
#include "base/strings/string_piece.h"
#include "net/base/net_export.h"
-#include "net/quic/core/quic_protocol.h"
+#include "net/quic/core/quic_packets.h"
namespace net {
@@ -347,11 +347,10 @@ class NET_EXPORT_PRIVATE QuicFramer {
typedef std::map<QuicPacketNumber, uint8_t> NackRangeMap;
- // TODO(rch): Rename this to remove "New" from the name here, and elsewhere.
- struct NewAckFrameInfo {
- NewAckFrameInfo();
- NewAckFrameInfo(const NewAckFrameInfo& other);
- ~NewAckFrameInfo();
+ struct AckFrameInfo {
+ AckFrameInfo();
+ AckFrameInfo(const AckFrameInfo& other);
+ ~AckFrameInfo();
// The maximum ack block length.
QuicPacketNumber max_block_length;
@@ -390,9 +389,9 @@ class NET_EXPORT_PRIVATE QuicFramer {
bool ProcessStreamFrame(QuicDataReader* reader,
uint8_t frame_type,
QuicStreamFrame* frame);
- bool ProcessNewAckFrame(QuicDataReader* reader,
- uint8_t frame_type,
- QuicAckFrame* frame);
+ bool ProcessAckFrame(QuicDataReader* reader,
+ uint8_t frame_type,
+ QuicAckFrame* frame);
bool ProcessTimestampsInAckFrame(QuicDataReader* reader, QuicAckFrame* frame);
bool ProcessStopWaitingFrame(QuicDataReader* reader,
const QuicPacketHeader& public_header,
@@ -442,7 +441,7 @@ class NET_EXPORT_PRIVATE QuicFramer {
QuicPacketNumberLength packet_number_length);
// Computes the wire size in bytes of the |ack| frame.
- size_t GetNewAckFrameSize(const QuicAckFrame& ack);
+ size_t GetAckFrameSize(const QuicAckFrame& ack);
// Computes the wire size in bytes of the payload of |frame|.
size_t ComputeFrameLength(const QuicFrame& frame,
@@ -464,13 +463,13 @@ class NET_EXPORT_PRIVATE QuicFramer {
static uint8_t GetSequenceNumberFlags(
QuicPacketNumberLength packet_number_length);
- static NewAckFrameInfo GetNewAckFrameInfo(const QuicAckFrame& frame);
+ static AckFrameInfo GetAckFrameInfo(const QuicAckFrame& frame);
// The Append* methods attempt to write the provided header or frame using the
// |writer|, and return true if successful.
- bool AppendNewAckFrameAndTypeByte(const QuicAckFrame& frame,
- QuicDataWriter* builder);
+ bool AppendAckFrameAndTypeByte(const QuicAckFrame& frame,
+ QuicDataWriter* builder);
bool AppendTimestampToAckFrame(const QuicAckFrame& frame,
QuicDataWriter* builder);
bool AppendStopWaitingFrame(const QuicPacketHeader& header,
« no previous file with comments | « net/quic/core/quic_frame_list.h ('k') | net/quic/core/quic_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698