1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
   58
   59
   60
   61
   62
   63
   64
   65
   66
   67
   68
   69
   70
   71
   72
   73
   74
   75
   76
   77
   78
   79
   80
   81
   82
   83
   84
   85
   86
   87
   88
   89
   90
   91
   92
   93
   94
   95
   96
   97
   98

fuchsia_web / webengine / web_instance-common.shard.cml [blame]

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
{
  program: {
    runner: "elf",
    binary: "web_engine_exe",
  },
  capabilities: [
    {
      protocol: [
        "fuchsia.web.Context",
        "fuchsia.web.Debug",
        "fuchsia.web.FrameHost",
      ],
    },
  ],
  use: [
    // fuchsia.web/CreateContextParams.cdm_data_directory.
    {
      directory: "cdm_data",
      rights: [ "rw*" ],
      path: "/cdm_data",
      availability: "optional",
    },

    // Holds optional .json config files.
    {
      directory: "config-data",
      rights: [ "r*" ],
      path: "/config/data",
      availability: "optional",
    },

    // fuchsia.web/CreateContextParams.content_directories.
    {
      directory: "content-directories",
      rights: [ "r*" ],
      path: "/content-directories",
      availability: "optional",
    },

    // Expected to host an "argv.json" file containing command line args.
    {
      directory: "command-line-config",
      rights: [ "r*" ],
      path: "/config/command-line",
      availability: "optional",
    },

    // fuchsia.web/CreateContextParams.data_directory.
    {
      directory: "data",
      rights: [ "rw*" ],
      path: "/data",
      availability: "optional",
    },

    // Holds cert.pem; the system root certificate store.
    {
      directory: "root-ssl-certificates",
      rights: [ "r*" ],
      path: "/config/ssl",
      availability: "optional",
    },

    // Holds ICU time zone data files.
    // See:
    // https://fuchsia.dev/fuchsia-src/concepts/process/namespaces?typical_directory_structure
    {
      directory: "tzdata-icu",
      rights: [ "r*" ],
      path: "/config/tzdata/icu",
    },

    // Temporary directory specified by WebInstanceHost.set_tmp_dir.
    {
      directory: "tmp",
      rights: [ "rw*" ],
      path: "/tmp",
      availability: "optional",
    },
  ],
  expose: [
    {
      protocol: [
        "fuchsia.web.Context",
        "fuchsia.web.Debug",
        "fuchsia.web.FrameHost",
      ],
      from: "self",
    },
    {
      protocol: "fuchsia.component.Binder",
      from: "framework",
    },
  ],
}