Index: net/url_request/url_request_context.cc |
diff --git a/net/url_request/url_request_context.cc b/net/url_request/url_request_context.cc |
index ce0676e8316899bba1e496106c9a4fb799b870a5..4a2f9dba8827b0f3db76efc60f6f19d83c2a0b37 100644 |
--- a/net/url_request/url_request_context.cc |
+++ b/net/url_request/url_request_context.cc |
@@ -101,6 +101,17 @@ const HttpNetworkSession::Params* URLRequestContext::GetNetworkSessionParams( |
return &network_session->params(); |
} |
+const HttpNetworkSession::Context* URLRequestContext::GetNetworkSessionContext() |
+ const { |
+ HttpTransactionFactory* transaction_factory = http_transaction_factory(); |
+ if (!transaction_factory) |
+ return nullptr; |
+ HttpNetworkSession* network_session = transaction_factory->GetSession(); |
+ if (!network_session) |
+ return nullptr; |
+ return &network_session->context(); |
+} |
+ |
std::unique_ptr<URLRequest> URLRequestContext::CreateRequest( |
const GURL& url, |
RequestPriority priority, |