summaryrefslogtreecommitdiffstats
path: root/chromium/services/network/public/mojom/network_service.mojom
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/services/network/public/mojom/network_service.mojom')
-rw-r--r--chromium/services/network/public/mojom/network_service.mojom15
1 files changed, 15 insertions, 0 deletions
diff --git a/chromium/services/network/public/mojom/network_service.mojom b/chromium/services/network/public/mojom/network_service.mojom
index a025436d949..ccccb45b34b 100644
--- a/chromium/services/network/public/mojom/network_service.mojom
+++ b/chromium/services/network/public/mojom/network_service.mojom
@@ -235,10 +235,20 @@ struct CryptConfig {
mojo_base.mojom.FilePath user_data_path;
};
+// Represents the value of a single environment variable.
+struct EnvironmentVariable {
+ string name;
+ string value;
+};
+
// Parameters needed to initialize the network service.
struct NetworkServiceParams {
ConnectionType initial_connection_type = CONNECTION_UNKNOWN;
ConnectionSubtype initial_connection_subtype = SUBTYPE_UNKNOWN;
+
+ // A set of environment variables that should be set in the network
+ // service when starting up.
+ array<EnvironmentVariable> environment;
};
// Browser interface to the network service.
@@ -381,4 +391,9 @@ interface NetworkService {
// Called on state changes of the Android application.
[EnableIf=is_android]
OnApplicationStateChange(mojo_base.mojom.ApplicationState state);
+
+ // Sets the given environment variables in the network service's process.
+ // This method won't modify variables that aren't present in the
+ // |environment| array.
+ SetEnvironment(array<EnvironmentVariable> environment);
};