| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 "contexts": ["blessed_extension"] | 243 "contexts": ["blessed_extension"] |
| 244 }, | 244 }, |
| 245 "debugger": { | 245 "debugger": { |
| 246 "dependencies": ["permission:debugger"], | 246 "dependencies": ["permission:debugger"], |
| 247 "contexts": ["blessed_extension"] | 247 "contexts": ["blessed_extension"] |
| 248 }, | 248 }, |
| 249 "declarativeContent": { | 249 "declarativeContent": { |
| 250 "dependencies": ["permission:declarativeContent"], | 250 "dependencies": ["permission:declarativeContent"], |
| 251 "contexts": ["blessed_extension"] | 251 "contexts": ["blessed_extension"] |
| 252 }, | 252 }, |
| 253 "declarativeWebRequest": { | |
| 254 "dependencies": ["permission:declarativeWebRequest"], | |
| 255 "contexts": ["blessed_extension"] | |
| 256 }, | |
| 257 "desktopCapture": { | 253 "desktopCapture": { |
| 258 "dependencies": ["permission:desktopCapture"], | 254 "dependencies": ["permission:desktopCapture"], |
| 259 "contexts": ["blessed_extension"] | 255 "contexts": ["blessed_extension"] |
| 260 }, | 256 }, |
| 261 "developerPrivate": { | 257 "developerPrivate": { |
| 262 "dependencies": ["permission:developerPrivate"], | 258 "dependencies": ["permission:developerPrivate"], |
| 263 "contexts": ["blessed_extension"] | 259 "contexts": ["blessed_extension"] |
| 264 }, | 260 }, |
| 265 "devtools.inspectedWindow": { | 261 "devtools.inspectedWindow": { |
| 266 "dependencies": ["manifest:devtools_page"], | 262 "dependencies": ["manifest:devtools_page"], |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 }, | 302 }, |
| 307 "enterprise.platformKeysInternal": { | 303 "enterprise.platformKeysInternal": { |
| 308 "dependencies": ["permission:enterprise.platformKeys"], | 304 "dependencies": ["permission:enterprise.platformKeys"], |
| 309 "internal": true, | 305 "internal": true, |
| 310 "contexts": ["blessed_extension"] | 306 "contexts": ["blessed_extension"] |
| 311 }, | 307 }, |
| 312 "enterprise.platformKeysPrivate": { | 308 "enterprise.platformKeysPrivate": { |
| 313 "dependencies": ["permission:enterprise.platformKeysPrivate"], | 309 "dependencies": ["permission:enterprise.platformKeysPrivate"], |
| 314 "contexts": ["blessed_extension"] | 310 "contexts": ["blessed_extension"] |
| 315 }, | 311 }, |
| 316 "events": { | |
| 317 "internal": true, | |
| 318 "channel": "stable", | |
| 319 "extension_types": ["platform_app", "extension"], | |
| 320 "contexts": "all", | |
| 321 "matches": ["<all_urls>"] | |
| 322 }, | |
| 323 "experienceSamplingPrivate": { | 312 "experienceSamplingPrivate": { |
| 324 "dependencies": ["permission:experienceSamplingPrivate"], | 313 "dependencies": ["permission:experienceSamplingPrivate"], |
| 325 "contexts": ["blessed_extension"] | 314 "contexts": ["blessed_extension"] |
| 326 }, | 315 }, |
| 327 "experimental.devtools.audits": { | 316 "experimental.devtools.audits": { |
| 328 "dependencies": ["permission:experimental", "manifest:devtools_page"], | 317 "dependencies": ["permission:experimental", "manifest:devtools_page"], |
| 329 "contexts": ["blessed_extension"] | 318 "contexts": ["blessed_extension"] |
| 330 }, | 319 }, |
| 331 "experimental.devtools.console": { | 320 "experimental.devtools.console": { |
| 332 "dependencies": ["permission:experimental", "manifest:devtools_page"], | 321 "dependencies": ["permission:experimental", "manifest:devtools_page"], |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 "contexts": ["blessed_extension"] | 708 "contexts": ["blessed_extension"] |
| 720 }, | 709 }, |
| 721 "wallpaperPrivate": { | 710 "wallpaperPrivate": { |
| 722 "dependencies": ["permission:wallpaperPrivate"], | 711 "dependencies": ["permission:wallpaperPrivate"], |
| 723 "contexts": ["blessed_extension"] | 712 "contexts": ["blessed_extension"] |
| 724 }, | 713 }, |
| 725 "webNavigation": { | 714 "webNavigation": { |
| 726 "dependencies": ["permission:webNavigation"], | 715 "dependencies": ["permission:webNavigation"], |
| 727 "contexts": ["blessed_extension"] | 716 "contexts": ["blessed_extension"] |
| 728 }, | 717 }, |
| 729 "webRequest": { | |
| 730 "dependencies": ["permission:webRequest"], | |
| 731 "contexts": ["blessed_extension"] | |
| 732 }, | |
| 733 "webRequestInternal": [{ | |
| 734 "internal": true, | |
| 735 "channel": "stable", | |
| 736 "contexts": ["blessed_extension"] | |
| 737 }, { | |
| 738 // webview uses webRequestInternal API. | |
| 739 "channel": "stable", | |
| 740 "internal": true, | |
| 741 "contexts": ["webui"], | |
| 742 "matches": ["chrome://chrome-signin/*"] | |
| 743 }], | |
| 744 "webrtcAudioPrivate": { | 718 "webrtcAudioPrivate": { |
| 745 "dependencies": ["permission:webrtcAudioPrivate"], | 719 "dependencies": ["permission:webrtcAudioPrivate"], |
| 746 "contexts": ["blessed_extension"] | 720 "contexts": ["blessed_extension"] |
| 747 }, | 721 }, |
| 748 "webrtcLoggingPrivate": { | 722 "webrtcLoggingPrivate": { |
| 749 "dependencies": ["permission:webrtcLoggingPrivate"], | 723 "dependencies": ["permission:webrtcLoggingPrivate"], |
| 750 "contexts": ["blessed_extension"] | 724 "contexts": ["blessed_extension"] |
| 751 }, | 725 }, |
| 752 "webstore": { | 726 "webstore": { |
| 753 // Hosted apps can use the webstore API from within a blessed context. | 727 // Hosted apps can use the webstore API from within a blessed context. |
| 754 "channel": "stable", | 728 "channel": "stable", |
| 755 // Set extension_types to 'all' to prevent webstore from being filtered. | 729 // Set extension_types to 'all' to prevent webstore from being filtered. |
| 756 // Technically, webstore is not in apps or extensions, but it is currently | 730 // Technically, webstore is not in apps or extensions, but it is currently |
| 757 // displayed on /extensions/webstore and /apps/webstore. The "contexts" | 731 // displayed on /extensions/webstore and /apps/webstore. The "contexts" |
| 758 // restriction effectively restricts this to hosted apps and webpages. | 732 // restriction effectively restricts this to hosted apps and webpages. |
| 759 "extension_types": "all", | 733 "extension_types": "all", |
| 760 "contexts": ["blessed_web_page", "web_page"], | 734 "contexts": ["blessed_web_page", "web_page"], |
| 761 // Any webpage can use the webstore API. | 735 // Any webpage can use the webstore API. |
| 762 "matches": ["<all_urls>"] | 736 "matches": ["<all_urls>"] |
| 763 }, | 737 }, |
| 764 "webstorePrivate": { | 738 "webstorePrivate": { |
| 765 "dependencies": ["permission:webstorePrivate"], | 739 "dependencies": ["permission:webstorePrivate"], |
| 766 // NOTE: even though this is only used by the webstore hosted app, which | 740 // NOTE: even though this is only used by the webstore hosted app, which |
| 767 // normally would mean blessed_web_page, component hosted apps are actually | 741 // normally would mean blessed_web_page, component hosted apps are actually |
| 768 // given the blessed_extension denomination. Confusing. | 742 // given the blessed_extension denomination. Confusing. |
| 769 "contexts": ["blessed_extension"] | 743 "contexts": ["blessed_extension"] |
| 770 }, | 744 }, |
| 771 "webViewRequest": [{ | |
| 772 "dependencies": ["permission:webview"], | |
| 773 "contexts": ["blessed_extension"] | |
| 774 }, { | |
| 775 "channel": "stable", | |
| 776 "contexts": ["webui"], | |
| 777 "matches": ["chrome://chrome-signin/*"] | |
| 778 }], | |
| 779 "webviewTag": { | 745 "webviewTag": { |
| 780 "internal": true, | 746 "internal": true, |
| 781 "channel": "stable", | 747 "channel": "stable", |
| 782 "dependencies": ["permission:webview"], | 748 "dependencies": ["permission:webview"], |
| 783 "contexts": ["blessed_extension"] | 749 "contexts": ["blessed_extension"] |
| 784 }, | 750 }, |
| 785 "windows": { | 751 "windows": { |
| 786 "dependencies": ["api:tabs"], | 752 "dependencies": ["api:tabs"], |
| 787 "contexts": ["blessed_extension"] | 753 "contexts": ["blessed_extension"] |
| 788 } | 754 } |
| 789 } | 755 } |
| OLD | NEW |