New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enabling network service #15791
Comments
Chromium 74 has this service enabled by default on all desktop platforms, will work on enabling it following the upgrade. |
The next phase is to remove usage of
content::BrowserContext::GetDefaultStoragePartition(browser_context)->GetNetworkContext() or we have a new class
THIS WILL BE PART II , remaining refactors will followup. |
Couple more tasks at the end of Part II
Related bug: https://bugs.chromium.org/p/chromium/issues/detail?id=820996
|
Now that network service is enabled by default on all platforms in chrome, the old code path is being deleted. https://bugs.chromium.org/p/chromium/issues/detail?id=934009 is the tracking bug for it. |
Service is on by default on master, #19602 has followup tasks. |
This is a meta bug to track all the work required to use the network service from chromium, which is being experimented in canary and stable channels at the moment. To use the service, pass
--enable-features=NetworkService
What is network service ?
As a part of chrome modularization project, network code is being moved from browser process into a separate process.
High level Design doc: https://docs.google.com/document/d/1wAHLw9h7gGuqJNCgG1mP1BmLtCGfZ2pys-PdZQ1vg7M/edit?pref=2&pli=1#heading=h.w406cmqiibno
Upstream meta bug: https://crbug.com/598073
Changes required in Electron
As we move to consuming the service, we will start to remove all usages from
//net
and use interfaces from//services/network
. So existing terminologies likeURLRequest
,URLRequestContext
,URLRequestJob
,URLFetcher
will now beURLLoaderRequest
,NetworkContext
,URLLoaderJob
,URLLoader
//services/network
URLRequestContext
with network service glue codeURLRequestContextBuilderMojo
to populate request context paramsatom::api::Cookies
to use cookie store from network contextnet::URLRequestContext
consumers inatom::api::Session
module - P2atom::api::WebRequest
module - P2atom::api::net
module - P3URLRequest
variations intoURLLoaderRequest
Updatenet::URLFetcher
to useURLLoader
- P1- Upstream related changes: https://crbug.com/746977, https://crbug.com/773295- In-Progress PR: [WIP] refactor: Migrate net::URLFetcher callsites over SimpleURLLoader #15705file://
,filesystem://
andblob://
work as expected - P2URLLoadFactoryParams
- P2AtomNavigationThrottle
- P3The text was updated successfully, but these errors were encountered: