host_id.mojom 525 B

1234567891011121314151617
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. module extensions.mojom;
  5. // IDs of hosts who own user scripts. A HostID is immutable after creation.
  6. struct HostID {
  7. enum HostType {
  8. kExtensions,
  9. kWebUi,
  10. };
  11. HostType type = kExtensions; // The type of the host.
  12. string id; // Similar to extension_id, host_id is a unique identifier for a
  13. // host, e.g., an Extension or WebUI.
  14. };