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

Unified Diff: chromecast/browser/url_request_context_factory.h

Issue 2656283002: [Chromecast] Enable QUIC for Chromecast. (Closed)
Patch Set: fix round 1 of comments Created 3 years, 11 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
Index: chromecast/browser/url_request_context_factory.h
diff --git a/chromecast/browser/url_request_context_factory.h b/chromecast/browser/url_request_context_factory.h
index 4cf106bdf1f8e50035c4dd6760271b127ae307bf..1b2396eb37cf4447c0bc5f21963a2339bb3dc47b 100644
--- a/chromecast/browser/url_request_context_factory.h
+++ b/chromecast/browser/url_request_context_factory.h
@@ -59,6 +59,8 @@ class URLRequestContextFactory {
// after the CastService is created, but before any URL requests are made.
void InitializeNetworkDelegates();
+ void DisableQuic();
+
private:
class URLRequestContextGetter;
class MainURLRequestContextGetter;
@@ -74,6 +76,7 @@ class URLRequestContextFactory {
void PopulateNetworkSessionParams(bool ignore_certificate_errors,
net::HttpNetworkSession::Params* params);
+ void DisableQuicOnBrowserIOThread();
// These are called by the RequestContextGetters to create each
// RequestContext.
@@ -121,6 +124,11 @@ class URLRequestContextFactory {
bool media_dependencies_initialized_;
std::unique_ptr<net::HttpTransactionFactory> media_transaction_factory_;
+ // Determines if QUIC is enabled for a URLContextGetter when it is created.
+ // QUIC can be disabled at runtime by calling DisableQuic() above.
+ // Only accessed on content::BrowserThread::IO thread.
+ bool enable_quic_;
+
net::NetLog* net_log_;
};
« no previous file with comments | « chromecast/browser/cast_content_browser_client.cc ('k') | chromecast/browser/url_request_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698