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

Unified Diff: net/url_request/url_request_context.h

Issue 2907463002: Split HttpNetworkSession::Params into two structs. (Closed)
Patch Set: Fix Created 3 years, 7 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 0d954a62df6b1f0bda625486f084222792b340f6..5874bbc157c4738cdaa197283cb058bc4026dfa6 100644
--- a/net/url_request/url_request_context.h
+++ b/net/url_request/url_request_context.h
@@ -73,6 +73,10 @@ class NET_EXPORT URLRequestContext
// session.
const HttpNetworkSession::Params* GetNetworkSessionParams() const;
+ // May return nullptr if this context doesn't have an associated network
+ // session.
+ const HttpNetworkSession::Context* GetNetworkSessionContext() const;
+
// This function should not be used in Chromium, please use the version with
// NetworkTrafficAnnotationTag in the future.
std::unique_ptr<URLRequest> CreateRequest(

Powered by Google App Engine
This is Rietveld 408576698