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