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

Unified Diff: net/spdy/spdy_test_util_common.cc

Issue 1061853002: Emit session-level WINDOW_UPDATEs less frequently. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re: comments in #5. Created 5 years, 8 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_test_util_common.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_test_util_common.cc
diff --git a/net/spdy/spdy_test_util_common.cc b/net/spdy/spdy_test_util_common.cc
index becdb9102ccd71dbd853e66a0874a7ee1498036c..057bb5fe85592369cb3d9e0007d6e0f1806d2458 100644
--- a/net/spdy/spdy_test_util_common.cc
+++ b/net/spdy/spdy_test_util_common.cc
@@ -368,8 +368,8 @@ SpdySessionDependencies::SpdySessionDependencies(NextProto protocol)
enable_ping(false),
enable_user_alternate_protocol_ports(false),
protocol(protocol),
- stream_initial_recv_window_size(
- SpdySession::GetInitialWindowSize(protocol)),
+ session_max_recv_window_size(SpdySession::GetInitialWindowSize(protocol)),
+ stream_max_recv_window_size(SpdySession::GetInitialWindowSize(protocol)),
time_func(&base::TimeTicks::Now),
force_spdy_over_ssl(false),
force_spdy_always(false),
@@ -402,8 +402,8 @@ SpdySessionDependencies::SpdySessionDependencies(NextProto protocol,
enable_ping(false),
enable_user_alternate_protocol_ports(false),
protocol(protocol),
- stream_initial_recv_window_size(
- SpdySession::GetInitialWindowSize(protocol)),
+ session_max_recv_window_size(SpdySession::GetInitialWindowSize(protocol)),
+ stream_max_recv_window_size(SpdySession::GetInitialWindowSize(protocol)),
time_func(&base::TimeTicks::Now),
force_spdy_over_ssl(false),
force_spdy_always(false),
@@ -459,8 +459,10 @@ net::HttpNetworkSession::Params SpdySessionDependencies::CreateSessionParams(
params.enable_user_alternate_protocol_ports =
session_deps->enable_user_alternate_protocol_ports;
params.spdy_default_protocol = session_deps->protocol;
- params.spdy_stream_initial_recv_window_size =
- session_deps->stream_initial_recv_window_size;
+ params.spdy_session_max_recv_window_size =
+ session_deps->session_max_recv_window_size;
+ params.spdy_stream_max_recv_window_size =
+ session_deps->stream_max_recv_window_size;
params.time_func = session_deps->time_func;
params.next_protos = session_deps->next_protos;
params.trusted_spdy_proxy = session_deps->trusted_spdy_proxy;
@@ -713,6 +715,14 @@ void SpdySessionPoolPeer::SetEnableSendingInitialData(bool enabled) {
pool_->enable_sending_initial_data_ = enabled;
}
+void SpdySessionPoolPeer::SetSessionMaxRecvWindowSize(size_t window) {
+ pool_->session_max_recv_window_size_ = window;
+}
+
+void SpdySessionPoolPeer::SetStreamInitialRecvWindowSize(size_t window) {
+ pool_->stream_max_recv_window_size_ = window;
+}
+
SpdyTestUtil::SpdyTestUtil(NextProto protocol)
: protocol_(protocol),
spdy_version_(NextProtoToSpdyMajorVersion(protocol)) {
« no previous file with comments | « net/spdy/spdy_test_util_common.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698