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; |