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

Unified Diff: net/spdy/buffered_spdy_framer.cc

Issue 11415219: Move a number of static variables SPDY to HttpNetworkSession::Params. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix flip_in_mem_edsm_server Created 8 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/buffered_spdy_framer.h ('k') | net/spdy/buffered_spdy_framer_spdy2_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/buffered_spdy_framer.cc
diff --git a/net/spdy/buffered_spdy_framer.cc b/net/spdy/buffered_spdy_framer.cc
index bafb5ce17cc42a1c2b639ed20702c6d1be84130f..50a0d931eace9ddbc17e9015a6a08706c1485171 100644
--- a/net/spdy/buffered_spdy_framer.cc
+++ b/net/spdy/buffered_spdy_framer.cc
@@ -6,22 +6,16 @@
#include "base/logging.h"
-namespace {
-
-bool g_enable_compression_default = true;
-
-} // namespace
-
namespace net {
-BufferedSpdyFramer::BufferedSpdyFramer(int version)
+BufferedSpdyFramer::BufferedSpdyFramer(int version, bool enable_compression)
: spdy_framer_(version),
visitor_(NULL),
header_buffer_used_(0),
header_buffer_valid_(false),
header_stream_id_(SpdyFramer::kInvalidStream),
frames_received_(0) {
- spdy_framer_.set_enable_compression(g_enable_compression_default);
+ spdy_framer_.set_enable_compression(enable_compression);
memset(header_buffer_, 0, sizeof(header_buffer_));
}
@@ -296,11 +290,6 @@ bool BufferedSpdyFramer::IsCompressible(const SpdyFrame& frame) const {
return spdy_framer_.IsCompressible(frame);
}
-// static
-void BufferedSpdyFramer::set_enable_compression_default(bool value) {
- g_enable_compression_default = value;
-}
-
void BufferedSpdyFramer::InitHeaderStreaming(SpdyStreamId stream_id) {
memset(header_buffer_, 0, kHeaderBufferSize);
header_buffer_used_ = 0;
« no previous file with comments | « net/spdy/buffered_spdy_framer.h ('k') | net/spdy/buffered_spdy_framer_spdy2_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698