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

Unified Diff: net/spdy/spdy_framer_decoder_adapter.cc

Issue 2566513004: This change removes SpdyFramer::set_enable_compression() in favor of a constructor parameter. (Closed)
Patch Set: 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/spdy/spdy_framer.cc ('k') | net/spdy/spdy_framer_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_framer_decoder_adapter.cc
diff --git a/net/spdy/spdy_framer_decoder_adapter.cc b/net/spdy/spdy_framer_decoder_adapter.cc
index 83a479e779b117a25193bf69cce2bc6dc193df93..b68f04ab03eff4c402dedd6065d9b38ec02d3d9e 100644
--- a/net/spdy/spdy_framer_decoder_adapter.cc
+++ b/net/spdy/spdy_framer_decoder_adapter.cc
@@ -184,7 +184,10 @@ class NestedSpdyFramerDecoder : public SpdyFramerDecoderAdapter {
public:
explicit NestedSpdyFramerDecoder(SpdyFramer* outer)
- : framer_(nullptr), outer_(outer) {
+ : framer_(nullptr,
+ outer->compression_enabled() ? SpdyFramer::ENABLE_COMPRESSION
+ : SpdyFramer::DISABLE_COMPRESSION),
+ outer_(outer) {
DVLOG(1) << PRETTY_THIS;
}
~NestedSpdyFramerDecoder() override { DVLOG(1) << PRETTY_THIS; }
« no previous file with comments | « net/spdy/spdy_framer.cc ('k') | net/spdy/spdy_framer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698