summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/api/manifest_types.json
blob: 4fc77edc3f64325ce02c0d5baa5b8e7b8d69157f (plain)
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
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// The type schemas for structured manifest items. Not actually a callable API.
// TODO(kalman): Expose these in the docs somewhere.

[
  {
    "namespace": "manifestTypes",
    "description": "Schemas for structured manfiest entries",
    "types": [
      {
        "id": "ExternallyConnectable",
        "type": "object",
        "description": "The schema of the <code>externally_connectable</code> manifest property",
        "properties": {
          "matches": {
            "description": "<p>The URL patterns for web pages that are allowed to connect. If left empty or unspecified, no web pages can connect.</p><p>Patterns cannot include wildcard domains nor subdomains of (effective) top level domains; <code>*://google.com/*</code> and <code>http://*.chromium.org/*</code> are valid, while <code>&lt;all_urls&gt;</code>, <code>http://*/*</code>, <code>*://*.com/*</code>, and even <code>http://*.appspot.com/*</code> are not.</p>",
            "optional": true,
            "type": "array",
            "items": {"type": "string"}
          },
          "ids": {
            "description": "The IDs of extensions or apps that are allowed to connect. If left empty or unspecified, no extensions nor apps can connect. <code>*</code> will match all extension and app IDs.",
            "optional": true,
            "type": "array",
            "items": {"type": "string"}
          }
        }
      }
    ]
  }
]