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

Unified Diff: net/spdy/spdy_frame_builder.h

Issue 2130153002: Clean up max_frame_size related constants, move storage of setting to the framer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a typo in net/spdy/spdy_protocol.h. Created 4 years, 5 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_headers_stream_test.cc ('k') | net/spdy/spdy_frame_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_frame_builder.h
diff --git a/net/spdy/spdy_frame_builder.h b/net/spdy/spdy_frame_builder.h
index 86c8ee001e6b8bd62dddf5061c8e333fcf68106e..47ec816cc68519818506f66599b922ccdcff5557 100644
--- a/net/spdy/spdy_frame_builder.h
+++ b/net/spdy/spdy_frame_builder.h
@@ -77,9 +77,9 @@ class NET_EXPORT_PRIVATE SpdyFrameBuilder {
// Takes the buffer from the SpdyFrameBuilder.
SpdySerializedFrame take() {
if (version_ == HTTP2) {
- SPDY_BUG_IF(SpdyConstants::GetFrameMaximumSize(version_) < length_)
+ SPDY_BUG_IF(SpdyConstants::GetMaxFrameSizeLimit(version_) < length_)
<< "Frame length " << length_
- << " is longer than the maximum allowed length.";
+ << " is longer than the maximum possible allowed length.";
}
SpdySerializedFrame rv(buffer_.release(), length(), true);
capacity_ = 0;
« no previous file with comments | « net/quic/quic_headers_stream_test.cc ('k') | net/spdy/spdy_frame_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698