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

Unified Diff: net/quic/quic_protocol.cc

Issue 1979743002: Rename the QUIC stream frame fields frame_buffer and frame_length to data_buffer and data_length be… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@121700577
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_protocol.h ('k') | net/quic/quic_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_protocol.cc
diff --git a/net/quic/quic_protocol.cc b/net/quic/quic_protocol.cc
index c9550bc584ec630501e26b0fab778b1557c1d3ea..c3259ff7996d139396f82b36deee7ece6cafd0b9 100644
--- a/net/quic/quic_protocol.cc
+++ b/net/quic/quic_protocol.cc
@@ -133,33 +133,33 @@ QuicStreamFrame::QuicStreamFrame(QuicStreamId stream_id,
QuicStreamFrame::QuicStreamFrame(QuicStreamId stream_id,
bool fin,
QuicStreamOffset offset,
- QuicPacketLength frame_length,
+ QuicPacketLength data_length,
UniqueStreamBuffer buffer)
: QuicStreamFrame(stream_id,
fin,
offset,
nullptr,
- frame_length,
+ data_length,
std::move(buffer)) {
DCHECK(this->buffer != nullptr);
- DCHECK_EQ(frame_buffer, this->buffer.get());
+ DCHECK_EQ(data_buffer, this->buffer.get());
}
QuicStreamFrame::QuicStreamFrame(QuicStreamId stream_id,
bool fin,
QuicStreamOffset offset,
- const char* frame_buffer,
- QuicPacketLength frame_length,
+ const char* data_buffer,
+ QuicPacketLength data_length,
UniqueStreamBuffer buffer)
: stream_id(stream_id),
fin(fin),
- frame_length(frame_length),
- frame_buffer(frame_buffer),
+ data_length(data_length),
+ data_buffer(data_buffer),
offset(offset),
buffer(std::move(buffer)) {
if (this->buffer != nullptr) {
- DCHECK(frame_buffer == nullptr);
- this->frame_buffer = this->buffer.get();
+ DCHECK(data_buffer == nullptr);
+ this->data_buffer = this->buffer.get();
}
}
@@ -674,7 +674,7 @@ ostream& operator<<(ostream& os, const QuicStreamFrame& stream_frame) {
os << "stream_id { " << stream_frame.stream_id << " } "
<< "fin { " << stream_frame.fin << " } "
<< "offset { " << stream_frame.offset << " } "
- << "length { " << stream_frame.frame_length << " }\n";
+ << "length { " << stream_frame.data_length << " }\n";
return os;
}
« no previous file with comments | « net/quic/quic_protocol.h ('k') | net/quic/quic_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698