summaryrefslogtreecommitdiff
path: root/chromium/services/network/public/mojom/network_context.mojom
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/services/network/public/mojom/network_context.mojom')
-rw-r--r--chromium/services/network/public/mojom/network_context.mojom28
1 files changed, 24 insertions, 4 deletions
diff --git a/chromium/services/network/public/mojom/network_context.mojom b/chromium/services/network/public/mojom/network_context.mojom
index f3f625cc6d5..8cdb76c6eac 100644
--- a/chromium/services/network/public/mojom/network_context.mojom
+++ b/chromium/services/network/public/mojom/network_context.mojom
@@ -33,13 +33,11 @@ import "services/network/public/mojom/isolation_info.mojom";
import "services/network/public/mojom/network_param.mojom";
import "services/network/public/mojom/origin_policy_manager.mojom";
import "services/network/public/mojom/parsed_headers.mojom";
-import "services/network/public/mojom/p2p.mojom";
-import "services/network/public/mojom/p2p_trusted.mojom";
import "services/network/public/mojom/proxy_config.mojom";
import "services/network/public/mojom/proxy_config_with_annotation.mojom";
import "services/network/public/mojom/proxy_lookup_client.mojom";
import "services/network/public/mojom/proxy_resolving_socket.mojom";
-import "services/network/public/mojom/reporting_report.mojom";
+import "services/network/public/mojom/reporting_service.mojom";
import "services/network/public/mojom/restricted_cookie_manager.mojom";
import "services/network/public/mojom/site_for_cookies.mojom";
import "services/network/public/mojom/ssl_config.mojom";
@@ -59,6 +57,15 @@ import "url/mojom/url.mojom";
[EnableIf=is_chromeos_ash]
import "services/network/public/mojom/dhcp_wpad_url_client.mojom";
+[EnableIf=is_p2p_enabled]
+import "services/network/public/mojom/p2p.mojom";
+
+[EnableIf=is_p2p_enabled]
+import "services/network/public/mojom/p2p_trusted.mojom";
+
+[EnableIf=is_win]
+import "services/proxy_resolver_win/public/mojom/proxy_resolver_win.mojom";
+
const uint32 kWebSocketOptionNone = 0;
// Disallow the request from sending cookies. Disallow the response from writing
// cookies.
@@ -118,7 +125,7 @@ struct CertVerifierServiceRemoteParams {
// Client to update the custom proxy config.
interface CustomProxyConfigClient {
- OnCustomProxyConfigUpdated(CustomProxyConfig proxy_config);
+ OnCustomProxyConfigUpdated(CustomProxyConfig proxy_config) => ();
// Marks the custom proxies in |bad_proxies| as temporarily bad, so they are
// not layered onto the proxy resolution results for subsequent requests.
@@ -294,6 +301,13 @@ struct NetworkContextParams {
pending_remote<proxy_resolver.mojom.ProxyResolverFactory>?
proxy_resolver_factory;
+ // Handles all proxy resolution logic if the current proxy config comes from
+ // the operating system. Otherwise, or if this is not populated, proxy
+ // resolution is handled by Chrome as normal.
+ [EnableIf=is_win]
+ pending_remote<proxy_resolver_win.mojom.WindowsSystemProxyResolver>?
+ windows_system_proxy_resolver;
+
// Retrieves the PAC script URL set via DHCP from the browser process. Only
// used if |proxy_resolver_factory| is set. Note: optional because some tests
// build their own NetworkContextParams and don't need a DHCP WPAD client.
@@ -1232,6 +1246,7 @@ interface NetworkContext {
// |network_isolation_key| is the network cache shard to associate with the
// P2PSocketManager instance, and affects DNS cache shard used and proxy
// connection sharing.
+ [EnableIf=is_p2p_enabled]
CreateP2PSocketManager(
NetworkIsolationKey network_isolation_key,
pending_remote<P2PTrustedSocketManagerClient> client,
@@ -1346,6 +1361,11 @@ interface NetworkContext {
NetworkIsolationKey network_isolation_key,
AuthCredentials credentials) => ();
+ // Sets whether
+ // https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name is
+ // supported in this network context.
+ SetCorsNonWildcardRequestHeadersSupport(bool value);
+
// Looks up credentials in the HttpAuthCache using the origin and path from
// |url|. Only supports basic auth scheme. Only looks up server (not proxy)
// auth credentials, and only those that are usable in the scope of