| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This features file defines extension APIs implemented under src/chrome. | 5 // This features file defines extension APIs implemented under src/chrome. |
| 6 // See extensions/common/features/* to understand this file, in particular | 6 // See extensions/common/features/* to understand this file, in particular |
| 7 // feature.h, simple_feature.h, and base_feature_provider.h. | 7 // feature.h, simple_feature.h, and base_feature_provider.h. |
| 8 // | 8 // |
| 9 // Note that specifying "web_page", "blessed_web_page", or "all" as a context | 9 // Note that specifying "web_page", "blessed_web_page", or "all" as a context |
| 10 // type will require manually updating chrome/renderer/resources/dispatcher.cc. | 10 // type will require manually updating chrome/renderer/resources/dispatcher.cc. |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 "contexts": ["blessed_extension"] | 241 "contexts": ["blessed_extension"] |
| 242 }, | 242 }, |
| 243 "debugger": { | 243 "debugger": { |
| 244 "dependencies": ["permission:debugger"], | 244 "dependencies": ["permission:debugger"], |
| 245 "contexts": ["blessed_extension"] | 245 "contexts": ["blessed_extension"] |
| 246 }, | 246 }, |
| 247 "declarativeContent": { | 247 "declarativeContent": { |
| 248 "dependencies": ["permission:declarativeContent"], | 248 "dependencies": ["permission:declarativeContent"], |
| 249 "contexts": ["blessed_extension"] | 249 "contexts": ["blessed_extension"] |
| 250 }, | 250 }, |
| 251 "declarativeWebRequest": { | |
| 252 "dependencies": ["permission:declarativeWebRequest"], | |
| 253 "contexts": ["blessed_extension"] | |
| 254 }, | |
| 255 "desktopCapture": { | 251 "desktopCapture": { |
| 256 "dependencies": ["permission:desktopCapture"], | 252 "dependencies": ["permission:desktopCapture"], |
| 257 "contexts": ["blessed_extension"] | 253 "contexts": ["blessed_extension"] |
| 258 }, | 254 }, |
| 259 "developerPrivate": { | 255 "developerPrivate": { |
| 260 "dependencies": ["permission:developerPrivate"], | 256 "dependencies": ["permission:developerPrivate"], |
| 261 "contexts": ["blessed_extension"] | 257 "contexts": ["blessed_extension"] |
| 262 }, | 258 }, |
| 263 "devtools.inspectedWindow": { | 259 "devtools.inspectedWindow": { |
| 264 "dependencies": ["manifest:devtools_page"], | 260 "dependencies": ["manifest:devtools_page"], |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 }, | 300 }, |
| 305 "enterprise.platformKeysInternal": { | 301 "enterprise.platformKeysInternal": { |
| 306 "dependencies": ["permission:enterprise.platformKeys"], | 302 "dependencies": ["permission:enterprise.platformKeys"], |
| 307 "internal": true, | 303 "internal": true, |
| 308 "contexts": ["blessed_extension"] | 304 "contexts": ["blessed_extension"] |
| 309 }, | 305 }, |
| 310 "enterprise.platformKeysPrivate": { | 306 "enterprise.platformKeysPrivate": { |
| 311 "dependencies": ["permission:enterprise.platformKeysPrivate"], | 307 "dependencies": ["permission:enterprise.platformKeysPrivate"], |
| 312 "contexts": ["blessed_extension"] | 308 "contexts": ["blessed_extension"] |
| 313 }, | 309 }, |
| 314 "events": { | |
| 315 "internal": true, | |
| 316 "channel": "stable", | |
| 317 "extension_types": ["platform_app", "extension"], | |
| 318 "contexts": "all", | |
| 319 "matches": ["<all_urls>"] | |
| 320 }, | |
| 321 "experienceSamplingPrivate": { | 310 "experienceSamplingPrivate": { |
| 322 "dependencies": ["permission:experienceSamplingPrivate"], | 311 "dependencies": ["permission:experienceSamplingPrivate"], |
| 323 "contexts": ["blessed_extension"] | 312 "contexts": ["blessed_extension"] |
| 324 }, | 313 }, |
| 325 "experimental.devtools.audits": { | 314 "experimental.devtools.audits": { |
| 326 "dependencies": ["permission:experimental", "manifest:devtools_page"], | 315 "dependencies": ["permission:experimental", "manifest:devtools_page"], |
| 327 "contexts": ["blessed_extension"] | 316 "contexts": ["blessed_extension"] |
| 328 }, | 317 }, |
| 329 "experimental.devtools.console": { | 318 "experimental.devtools.console": { |
| 330 "dependencies": ["permission:experimental", "manifest:devtools_page"], | 319 "dependencies": ["permission:experimental", "manifest:devtools_page"], |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 "contexts": ["blessed_extension"] | 706 "contexts": ["blessed_extension"] |
| 718 }, | 707 }, |
| 719 "wallpaperPrivate": { | 708 "wallpaperPrivate": { |
| 720 "dependencies": ["permission:wallpaperPrivate"], | 709 "dependencies": ["permission:wallpaperPrivate"], |
| 721 "contexts": ["blessed_extension"] | 710 "contexts": ["blessed_extension"] |
| 722 }, | 711 }, |
| 723 "webNavigation": { | 712 "webNavigation": { |
| 724 "dependencies": ["permission:webNavigation"], | 713 "dependencies": ["permission:webNavigation"], |
| 725 "contexts": ["blessed_extension"] | 714 "contexts": ["blessed_extension"] |
| 726 }, | 715 }, |
| 727 "webRequest": { | |
| 728 "dependencies": ["permission:webRequest"], | |
| 729 "contexts": ["blessed_extension"] | |
| 730 }, | |
| 731 "webRequestInternal": [{ | |
| 732 "internal": true, | |
| 733 "channel": "stable", | |
| 734 "contexts": ["blessed_extension"] | |
| 735 }, { | |
| 736 // webview uses webRequestInternal API. | |
| 737 "channel": "stable", | |
| 738 "internal": true, | |
| 739 "contexts": ["webui"], | |
| 740 "matches": ["chrome://chrome-signin/*"] | |
| 741 }], | |
| 742 "webrtcAudioPrivate": { | 716 "webrtcAudioPrivate": { |
| 743 "dependencies": ["permission:webrtcAudioPrivate"], | 717 "dependencies": ["permission:webrtcAudioPrivate"], |
| 744 "contexts": ["blessed_extension"] | 718 "contexts": ["blessed_extension"] |
| 745 }, | 719 }, |
| 746 "webrtcLoggingPrivate": { | 720 "webrtcLoggingPrivate": { |
| 747 "dependencies": ["permission:webrtcLoggingPrivate"], | 721 "dependencies": ["permission:webrtcLoggingPrivate"], |
| 748 "contexts": ["blessed_extension"] | 722 "contexts": ["blessed_extension"] |
| 749 }, | 723 }, |
| 750 "webstore": { | 724 "webstore": { |
| 751 // Hosted apps can use the webstore API from within a blessed context. | 725 // Hosted apps can use the webstore API from within a blessed context. |
| 752 "channel": "stable", | 726 "channel": "stable", |
| 753 // Set extension_types to 'all' to prevent webstore from being filtered. | 727 // Set extension_types to 'all' to prevent webstore from being filtered. |
| 754 // Technically, webstore is not in apps or extensions, but it is currently | 728 // Technically, webstore is not in apps or extensions, but it is currently |
| 755 // displayed on /extensions/webstore and /apps/webstore. The "contexts" | 729 // displayed on /extensions/webstore and /apps/webstore. The "contexts" |
| 756 // restriction effectively restricts this to hosted apps and webpages. | 730 // restriction effectively restricts this to hosted apps and webpages. |
| 757 "extension_types": "all", | 731 "extension_types": "all", |
| 758 "contexts": ["blessed_web_page", "web_page"], | 732 "contexts": ["blessed_web_page", "web_page"], |
| 759 // Any webpage can use the webstore API. | 733 // Any webpage can use the webstore API. |
| 760 "matches": ["<all_urls>"] | 734 "matches": ["<all_urls>"] |
| 761 }, | 735 }, |
| 762 "webstorePrivate": { | 736 "webstorePrivate": { |
| 763 "dependencies": ["permission:webstorePrivate"], | 737 "dependencies": ["permission:webstorePrivate"], |
| 764 // NOTE: even though this is only used by the webstore hosted app, which | 738 // NOTE: even though this is only used by the webstore hosted app, which |
| 765 // normally would mean blessed_web_page, component hosted apps are actually | 739 // normally would mean blessed_web_page, component hosted apps are actually |
| 766 // given the blessed_extension denomination. Confusing. | 740 // given the blessed_extension denomination. Confusing. |
| 767 "contexts": ["blessed_extension"] | 741 "contexts": ["blessed_extension"] |
| 768 }, | 742 }, |
| 769 "webViewRequest": [{ | |
| 770 "dependencies": ["permission:webview"], | |
| 771 "contexts": ["blessed_extension"] | |
| 772 }, { | |
| 773 "channel": "stable", | |
| 774 "contexts": ["webui"], | |
| 775 "matches": ["chrome://chrome-signin/*"] | |
| 776 }], | |
| 777 "webviewTag": { | 743 "webviewTag": { |
| 778 "internal": true, | 744 "internal": true, |
| 779 "channel": "stable", | 745 "channel": "stable", |
| 780 "dependencies": ["permission:webview"], | 746 "dependencies": ["permission:webview"], |
| 781 "contexts": ["blessed_extension"] | 747 "contexts": ["blessed_extension"] |
| 782 }, | 748 }, |
| 783 "windows": { | 749 "windows": { |
| 784 "dependencies": ["api:tabs"], | 750 "dependencies": ["api:tabs"], |
| 785 "contexts": ["blessed_extension"] | 751 "contexts": ["blessed_extension"] |
| 786 } | 752 } |
| 787 } | 753 } |
| OLD | NEW |