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

Unified Diff: content/network/network_context.h

Issue 2976323002: Hook up ProfileIOData's URLRequestContext to a NetworkService. (Closed)
Patch Set: Response to comments Created 3 years, 5 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
« no previous file with comments | « content/network/DEPS ('k') | content/network/url_loader_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/network/network_context.h
diff --git a/content/network/network_context.h b/content/network/network_context.h
index c50fc033244f53f9a63cf1d3788e4aaae171bad6..08c68d5e8c71823cc62fe7c289c5eb34f216ddad 100644
--- a/content/network/network_context.h
+++ b/content/network/network_context.h
@@ -26,6 +26,19 @@ namespace content {
class NetworkServiceImpl;
class URLLoaderImpl;
+// A NetworkContext creates and manages access to a URLRequestContext.
+//
+// When the network service is enabled, NetworkContexts are created through
+// NetworkService's mojo interface and are owned jointly by the NetworkService
+// and the NetworkContextPtr used to talk to them, and the NetworkContext is
+// destroyed when either one is torn down.
+//
+// When the network service is disabled, NetworkContexts may be created through
+// NetworkServiceImpl::CreateNetworkContextWithBuilder, and take in a
+// URLRequestContextBuilder to seed construction of the NetworkContext's
+// URLRequestContext. When that happens, the consumer takes ownership of the
+// NetworkContext directly, has direct access to its URLRequestContext, and is
+// responsible for destroying it before the NetworkService.
class NetworkContext : public mojom::NetworkContext {
public:
NetworkContext(NetworkServiceImpl* network_service,
« no previous file with comments | « content/network/DEPS ('k') | content/network/url_loader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698