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

Unified Diff: content/public/browser/content_browser_client.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/url_loader_unittest.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index 760e15d1929e8decc4738365a020fa1703e731e0..ab66d5c5bded6b358a553776b317c9019fb394ee 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -22,6 +22,7 @@
#include "content/public/common/associated_interface_registry.h"
#include "content/public/common/content_client.h"
#include "content/public/common/media_stream_request.h"
+#include "content/public/common/network_service.mojom.h"
#include "content/public/common/resource_type.h"
#include "content/public/common/sandbox_type.h"
#include "content/public/common/socket_permission_request.h"
@@ -143,6 +144,10 @@ struct OpenURLParams;
struct Referrer;
struct WebPreferences;
+namespace mojom {
+class NetworkContext;
+}
+
// Embedder API (or SPI) for participating in browser logic, to be implemented
// by the client of the content browser. See ChromeContentBrowserClient for the
// principal implementation. The methods are assumed to be called on the UI
@@ -825,6 +830,15 @@ class CONTENT_EXPORT ContentBrowserClient {
// This is called on the IO thread.
virtual std::vector<std::unique_ptr<URLLoaderThrottle>>
CreateURLLoaderThrottles(const base::Callback<WebContents*()>& wc_getter);
+
+ // Creates the main NetworkContext for a BrowserContext's StoragePartition.
+ // Only called when the network service is enabled. If |in_memory| is true,
+ // |relative_partition_path| is still a path that uniquely identifies the
+ // storage partition, though nothing should be written to it.
+ virtual mojom::NetworkContextPtr CreateNetworkContext(
+ BrowserContext* context,
+ bool in_memory,
+ const base::FilePath& relative_partition_path);
};
} // namespace content
« no previous file with comments | « content/network/url_loader_unittest.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698