2015-07-16 23:40:01 +02:00
|
|
|
// 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
|
2017-03-03 23:37:23 +01:00
|
|
|
// feature.h, simple_feature.h, and feature_provider.h.
|
2015-07-16 23:40:01 +02:00
|
|
|
|
2016-07-20 20:03:38 +02:00
|
|
|
// If APIs are defined in chrome then entries must also be added in
|
|
|
|
// libcef/browser/extensions/chrome_api_registration.cc.
|
|
|
|
|
2015-07-16 23:40:01 +02:00
|
|
|
{
|
|
|
|
// From chrome/common/extensions/api/_api_features.json.
|
|
|
|
// Required by the PDF extension which is hosted in a guest view.
|
2018-06-08 18:53:10 +02:00
|
|
|
"contentSettings": {
|
|
|
|
"dependencies": ["permission:contentSettings"],
|
|
|
|
"contexts": ["blessed_extension"]
|
|
|
|
},
|
2015-07-16 23:40:01 +02:00
|
|
|
"mimeHandlerViewGuestInternal": {
|
|
|
|
"internal": true,
|
|
|
|
"contexts": "all",
|
|
|
|
"channel": "stable",
|
|
|
|
"matches": ["<all_urls>"]
|
2016-07-20 20:03:38 +02:00
|
|
|
},
|
2023-01-30 18:43:54 +01:00
|
|
|
"pdfViewerPrivate": {
|
|
|
|
"dependencies": ["permission:pdfViewerPrivate"],
|
|
|
|
"contexts": ["blessed_extension"]
|
|
|
|
},
|
2019-09-04 17:13:32 +02:00
|
|
|
"resourcesPrivate": [
|
|
|
|
{
|
|
|
|
"dependencies": ["permission:resourcesPrivate"],
|
|
|
|
"contexts": ["blessed_extension"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"channel": "stable",
|
|
|
|
"contexts": ["webui"],
|
|
|
|
"matches": ["chrome://print/*"]
|
|
|
|
}
|
|
|
|
],
|
2016-07-20 20:03:38 +02:00
|
|
|
"tabs": {
|
|
|
|
"channel": "stable",
|
|
|
|
"extension_types": ["extension", "legacy_packaged_app"],
|
2019-09-04 17:13:32 +02:00
|
|
|
"contexts": ["blessed_extension"],
|
|
|
|
"disallow_for_service_workers": false
|
2015-07-16 23:40:01 +02:00
|
|
|
}
|
|
|
|
}
|