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

Unified Diff: net/url_request/url_request_context.h

Issue 10834215: Remove static variables from HttpStreamFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: syntax error Created 8 years, 4 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: net/url_request/url_request_context.h
diff --git a/net/url_request/url_request_context.h b/net/url_request/url_request_context.h
index 8e8e3cc902e499d98b25fa0d0a964bfa7c77e9b1..ec965e24dba41a6c4c6a37569b27e985eb7a742d 100644
--- a/net/url_request/url_request_context.h
+++ b/net/url_request/url_request_context.h
@@ -20,6 +20,7 @@
#include "net/base/net_log.h"
#include "net/base/ssl_config_service.h"
#include "net/base/transport_security_state.h"
+#include "net/http/http_network_session.h"
#include "net/http/http_server_properties.h"
#include "net/ftp/ftp_auth_cache.h"
#include "net/url_request/url_request.h"
@@ -52,6 +53,10 @@ class NET_EXPORT URLRequestContext
// Copies the state from |other| into this context.
void CopyFrom(const URLRequestContext* other);
+ // If this context has an associated network session, populate params from the
+ // network session and return true.
+ bool GetReferenceParams(HttpNetworkSession::Params* params) const;
mmenke 2012/09/04 17:43:13 Is a copy really necessary? Seems like we could j
mmenke 2012/09/04 17:43:13 Suggest calling this GetNetworkSessionParams, sinc
szager1 2012/09/04 19:31:07 The problem is that the URLRequestContext may not
szager1 2012/09/04 19:31:07 Done.
mmenke 2012/09/04 19:35:40 I was thinking something more along the lines of:
+
URLRequest* CreateRequest(
const GURL& url, URLRequest::Delegate* delegate) const;

Powered by Google App Engine
This is Rietveld 408576698