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

Unified Diff: net/spdy/spdy_framer.cc

Issue 1146533003: Add SpdyFramer methods for SETTINGS_HEADER_TABLE_SIZE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove const qualifier from size_t return type. Created 5 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/spdy/spdy_framer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_framer.cc
diff --git a/net/spdy/spdy_framer.cc b/net/spdy/spdy_framer.cc
index ea5eaa564b3b9b92667fd03bac10d1f59ce1a943..f40e86cfffce003202ee74b87cb375850f331cd4 100644
--- a/net/spdy/spdy_framer.cc
+++ b/net/spdy/spdy_framer.cc
@@ -161,7 +161,8 @@ SpdyFramer::SpdyFramer(SpdyMajorVersion version)
enable_compression_(true),
syn_frame_processed_(false),
probable_http_response_(false),
- end_stream_when_done_(false) {
+ end_stream_when_done_(false),
+ header_table_size_bound_(4096) {
DCHECK_GE(protocol_version_, SPDY_MIN_VERSION);
DCHECK_LE(protocol_version_, SPDY_MAX_VERSION);
DCHECK_LE(kMaxControlFrameSize,
@@ -3201,6 +3202,17 @@ bool SpdyFramer::IncrementallyDeliverControlFrameHeaderData(
return read_successfully;
}
+void SpdyFramer::UpdateHeaderTableSizeSetting(uint32 value) {
+ header_table_size_bound_ = value;
+ GetHpackEncoder()->ApplyHeaderTableSizeSetting(value);
+ GetHpackDecoder()->ApplyHeaderTableSizeSetting(value);
+}
+
+// Return size bound of the header compression table.
+size_t SpdyFramer::header_table_size_bound() const {
+ return header_table_size_bound_;
+}
+
void SpdyFramer::SerializeNameValueBlockWithoutCompression(
SpdyFrameBuilder* builder,
const SpdyNameValueBlock& name_value_block) const {
« no previous file with comments | « net/spdy/spdy_framer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698