summaryrefslogtreecommitdiff
path: root/libcef/common/extensions/api/_api_features.json
blob: db253cfaa19704c433a9305d6ad02301eede884d (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
35
36
37
38
39
40
41
42
43
44
45
46
// Copyright 2014 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.

// This file defines extension APIs implemented in CEF.
// See extensions/common/features/* to understand this file, in particular
// feature.h, simple_feature.h, and feature_provider.h.

// If APIs are defined in chrome then entries must also be added in
// libcef/browser/extensions/chrome_api_registration.cc.

{
  // From chrome/common/extensions/api/_api_features.json.
  // Required by the PDF extension which is hosted in a guest view.
  "contentSettings": {
    "dependencies": ["permission:contentSettings"],
    "contexts": ["blessed_extension"]
  },
  "mimeHandlerViewGuestInternal": {
    "internal": true,
    "contexts": "all",
    "channel": "stable",
    "matches": ["<all_urls>"]
  },
  "pdfViewerPrivate": {
    "dependencies": ["permission:pdfViewerPrivate"],
    "contexts": ["blessed_extension"]
  },
  "resourcesPrivate": [
    {
      "dependencies": ["permission:resourcesPrivate"],
      "contexts": ["blessed_extension"]
    },
    {
      "channel": "stable",
      "contexts": ["webui"],
      "matches": ["chrome://print/*"]
    }
  ],
  "tabs": {
    "channel": "stable",
    "extension_types": ["extension", "legacy_packaged_app"],
    "contexts": ["blessed_extension"],
    "disallow_for_service_workers": false
  }
}