| // Copyright 2023 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // This shard offers the capabilities that Chromium's `context_provider.cm` may |
| // `use` to the "#realm_builder" so that RealmBuilder may offer them to |
| // `context_provider.cm` when launching it. |
| // It should roughly match `web_context_provider.core_shard.cml`. |
| // |
| // Include this shard when a test will launch it's own instance of |
| // `context_provider.cm`. It is not required to use a `fuchsia.web.Context` |
| // (aka `web_instance`). |
| // |
| { |
| include: [ "syslog/offer.shard.cml" ], |
| offer: [ |
| { |
| directory: "config-data-for-web-instance", |
| from: "parent", |
| to: "#realm_builder", |
| availability: "optional", |
| }, |
| { |
| directory: "tzdata-icu", |
| from: "parent", |
| to: "#realm_builder", |
| }, |
| { |
| // Required because clients may `Create` `Context`s with |
| // `ContextFeatureFlags::NETWORK`. |
| directory: "root-ssl-certificates", |
| from: "parent", |
| to: "#realm_builder", |
| }, |
| { |
| protocol: [ |
| "fuchsia.feedback.ComponentDataRegister", |
| "fuchsia.feedback.CrashReportingProductRegister", |
| ], |
| from: "parent", |
| to: "#realm_builder", |
| }, |
| ], |
| } |