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

Unified Diff: net/url_request/url_request_context_storage.h

Issue 2546533003: Respect QuicAllowed policy for new streams (Closed)
Patch Set: IOS io_thread also initializes DynamicSharedParams 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
Index: net/url_request/url_request_context_storage.h
diff --git a/net/url_request/url_request_context_storage.h b/net/url_request/url_request_context_storage.h
index 0e4a8a51ea1d630b45d26e079c85e351abe6b4c1..1e9c73bbf326eccfbe370215f52a72a873580ed6 100644
--- a/net/url_request/url_request_context_storage.h
+++ b/net/url_request/url_request_context_storage.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "net/base/net_export.h"
+#include "net/http/http_network_session.h"
namespace net {
@@ -20,7 +21,6 @@ class CTPolicyEnforcer;
class CTVerifier;
class HostResolver;
class HttpAuthHandlerFactory;
-class HttpNetworkSession;
class HttpServerProperties;
class HttpTransactionFactory;
class HttpUserAgentSettings;
@@ -70,6 +70,9 @@ class NET_EXPORT URLRequestContextStorage {
std::unique_ptr<CTPolicyEnforcer> ct_policy_enforcer);
void set_http_network_session(
std::unique_ptr<HttpNetworkSession> http_network_session);
+ void set_http_network_session_dynamic_shared_params(
+ std::unique_ptr<HttpNetworkSession::DynamicSharedParams>
+ dynamic_shared_params);
void set_http_transaction_factory(
std::unique_ptr<HttpTransactionFactory> http_transaction_factory);
void set_job_factory(std::unique_ptr<URLRequestJobFactory> job_factory);
@@ -111,6 +114,9 @@ class NET_EXPORT URLRequestContextStorage {
// Not actually pointed at by the URLRequestContext, but may be used (but not
// owned) by the HttpTransactionFactory.
std::unique_ptr<HttpNetworkSession> http_network_session_;
+ // Used for lifetime management. May own nothing.
+ std::unique_ptr<HttpNetworkSession::DynamicSharedParams>
+ http_network_session_dynamic_shared_params_;
std::unique_ptr<HttpTransactionFactory> http_transaction_factory_;
std::unique_ptr<URLRequestJobFactory> job_factory_;

Powered by Google App Engine
This is Rietveld 408576698