diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/docs/mojo_and_services.md | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/docs/mojo_and_services.md')
-rw-r--r-- | chromium/docs/mojo_and_services.md | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/chromium/docs/mojo_and_services.md b/chromium/docs/mojo_and_services.md index 2aff980269f..46c2c5611b5 100644 --- a/chromium/docs/mojo_and_services.md +++ b/chromium/docs/mojo_and_services.md @@ -398,7 +398,6 @@ API: mojo::Remote<math::mojom::MathService> math_service = content::ServiceProcessHost::Launch<math::mojom::MathService>( content::ServiceProcessHost::LaunchOptions() - .WithSandboxType(content::SandboxType::kUtility) .WithDisplayName("Math!") .Pass()); ``` @@ -423,6 +422,19 @@ NOTE: To ensure the execution of the response callback, the and [this note from an earlier section](#sending-a-message)). *** +### Using a non-standard sandbox + +Ideally services will run inside the utility process sandbox, in which +case there is nothing else to do. For services that need a custom +sandbox, a new sandbox type must be defined in consultation with +security-dev@chromium.org. To launch with a custom sandbox a +specialization of `GetServiceSandboxType()` must be supplied in an +appropriate `service_sandbox_type.h` such as +[`//chrome/browser/service_sandbox_type.h`](https://cs.chromium.org/chromium/src/chrome/browser/service_sandbox_type.h) +or +[`//content/browser/service_sandbox_type.h`](https://cs.chromium.org/chromium/src/content/browser/service_sandbox_type.h) +and included where `ServiceProcessHost::Launch()` is called. + ## Content-Layer Services Overview ### Interface Brokers |