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

Unified Diff: chrome/browser/io_thread.h

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 | « chrome/browser/chrome_browser_field_trials.cc ('k') | chrome/browser/io_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread.h
diff --git a/chrome/browser/io_thread.h b/chrome/browser/io_thread.h
index de61126a3955a407e8353be7a420a82da74d5f5a..8216614ddc22304b21cc9b4f2310f3d4fa056620 100644
--- a/chrome/browser/io_thread.h
+++ b/chrome/browser/io_thread.h
@@ -17,6 +17,8 @@
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/browser_thread_delegate.h"
#include "net/base/network_change_notifier.h"
+#include "net/http/http_network_session.h"
+#include "net/socket/next_proto.h"
class ChromeNetLog;
class CommandLine;
@@ -70,6 +72,26 @@ class PolicyService;
class IOThread : public content::BrowserThreadDelegate {
public:
struct Globals {
+ template <typename T>
+ class Optional {
+ public:
+ Optional() : set_(false) {}
+
+ void set(T value) {
+ set_ = true;
+ value_ = value;
+ }
+ void CopyToIfSet(T* value) {
+ if (set_) {
+ *value = value_;
+ }
+ }
+
+ private:
+ bool set_;
+ T value_;
+ };
+
class SystemRequestContextLeakChecker {
public:
explicit SystemRequestContextLeakChecker(Globals* globals);
@@ -127,6 +149,15 @@ class IOThread : public content::BrowserThreadDelegate {
bool http_pipelining_enabled;
uint16 testing_fixed_http_port;
uint16 testing_fixed_https_port;
+ Optional<size_t> max_spdy_sessions_per_domain;
+ Optional<size_t> initial_max_spdy_concurrent_streams;
+ Optional<size_t> max_spdy_concurrent_streams_limit;
+ Optional<bool> force_spdy_single_domain;
+ Optional<bool> enable_spdy_ip_pooling;
+ Optional<bool> enable_spdy_credential_frames;
+ Optional<bool> enable_spdy_compression;
+ Optional<bool> enable_spdy_ping_based_connection_checking;
+ Optional<net::NextProto> spdy_default_protocol;
// NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a
// main frame load fails with a DNS error in order to provide more useful
// information to the renderer so it can show a more specific error page.
@@ -157,6 +188,8 @@ class IOThread : public content::BrowserThreadDelegate {
// called on the IO thread.
void ClearHostCache();
+ void InitializeNetworkSessionParams(net::HttpNetworkSession::Params* params);
+
private:
// Provide SystemURLRequestContextGetter with access to
// InitSystemRequestContext().
« no previous file with comments | « chrome/browser/chrome_browser_field_trials.cc ('k') | chrome/browser/io_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698