url_pattern_set.mojom 637 B

123456789101112131415161718192021
  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. // A pattern that can be used to match URLs. See C++ type URLPattern for full
  6. // documentation.
  7. struct URLPattern {
  8. // A bitmask containing the schemes considered valid for this pattern.
  9. int32 valid_schemes;
  10. // A string representing this URLPattern.
  11. string pattern;
  12. };
  13. // A set of URLs an extension uses for web content. See
  14. // extensions::URLPatternSet for full documentation.
  15. struct URLPatternSet {
  16. array <URLPattern> patterns;
  17. };