| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 ], | 46 ], |
| 47 "channel": "stable", | 47 "channel": "stable", |
| 48 "extension_types": ["hosted_app", "extension", "legacy_packaged_app"], | 48 "extension_types": ["hosted_app", "extension", "legacy_packaged_app"], |
| 49 "contexts": [ | 49 "contexts": [ |
| 50 "blessed_extension", | 50 "blessed_extension", |
| 51 "unblessed_extension", | 51 "unblessed_extension", |
| 52 "content_script", | 52 "content_script", |
| 53 "web_page", | 53 "web_page", |
| 54 "blessed_web_page" | 54 "blessed_web_page" |
| 55 ], | 55 ], |
| 56 "matches": [ | 56 // Any webpage can use the app API. |
| 57 "http://*/*", "https://*/*", "chrome-extension://*/*", "file://*/*" | 57 "matches": ["<all_urls>"] |
| 58 ] | |
| 59 }, | 58 }, |
| 60 "appViewInternal": { | 59 "appViewInternal": { |
| 61 "internal": true, | 60 "internal": true, |
| 62 "channel": "dev", | 61 "channel": "dev", |
| 63 "contexts": ["blessed_extension"] | 62 "contexts": ["blessed_extension"] |
| 64 }, | 63 }, |
| 65 "app.window": { | 64 "app.window": { |
| 66 "channel": "stable", | 65 "channel": "stable", |
| 67 "contexts": ["blessed_extension"], | 66 "contexts": ["blessed_extension"], |
| 68 "extension_types": ["platform_app"], | 67 "extension_types": ["platform_app"], |
| (...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 "dependencies": ["permission:webrtcAudioPrivate"], | 755 "dependencies": ["permission:webrtcAudioPrivate"], |
| 757 "contexts": ["blessed_extension"] | 756 "contexts": ["blessed_extension"] |
| 758 }, | 757 }, |
| 759 "webrtcLoggingPrivate": { | 758 "webrtcLoggingPrivate": { |
| 760 "dependencies": ["permission:webrtcLoggingPrivate"], | 759 "dependencies": ["permission:webrtcLoggingPrivate"], |
| 761 "contexts": ["blessed_extension"] | 760 "contexts": ["blessed_extension"] |
| 762 }, | 761 }, |
| 763 "webstore": { | 762 "webstore": { |
| 764 // Hosted apps can use the webstore API from within a blessed context. | 763 // Hosted apps can use the webstore API from within a blessed context. |
| 765 "channel": "stable", | 764 "channel": "stable", |
| 766 // Do not specify extension_types to prevent webstore from being filtered. | 765 // Set extension_types to 'all' to prevent webstore from being filtered. |
| 767 // Technically, webstore is not in apps or extensions, but it is currently | 766 // Technically, webstore is not in apps or extensions, but it is currently |
| 768 // displayed on /extensions/webstore and /apps/webstore. | 767 // displayed on /extensions/webstore and /apps/webstore. The "contexts" |
| 768 // restriction effectively restricts this to hosted apps and webpages. |
| 769 "extension_types": "all", |
| 769 "contexts": ["blessed_web_page", "web_page"], | 770 "contexts": ["blessed_web_page", "web_page"], |
| 770 // Any webpage can use the webstore API. | 771 // Any webpage can use the webstore API. |
| 771 "matches": ["http://*/*", "https://*/*"] | 772 "matches": ["<all_urls>"] |
| 772 }, | 773 }, |
| 773 "webstorePrivate": { | 774 "webstorePrivate": { |
| 774 "dependencies": ["permission:webstorePrivate"], | 775 "dependencies": ["permission:webstorePrivate"], |
| 775 "contexts": ["blessed_extension"] | 776 "contexts": ["blessed_extension"] |
| 776 }, | 777 }, |
| 777 "webViewInternal": [{ | 778 "webViewInternal": [{ |
| 778 "internal": true, | 779 "internal": true, |
| 779 "dependencies": ["permission:webview"], | 780 "dependencies": ["permission:webview"], |
| 780 "contexts": ["blessed_extension"] | 781 "contexts": ["blessed_extension"] |
| 781 }, { | 782 }, { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 798 "internal": true, | 799 "internal": true, |
| 799 "channel": "stable", | 800 "channel": "stable", |
| 800 "dependencies": ["permission:webview"], | 801 "dependencies": ["permission:webview"], |
| 801 "contexts": ["blessed_extension"] | 802 "contexts": ["blessed_extension"] |
| 802 }, | 803 }, |
| 803 "windows": { | 804 "windows": { |
| 804 "dependencies": ["api:tabs"], | 805 "dependencies": ["api:tabs"], |
| 805 "contexts": ["blessed_extension"] | 806 "contexts": ["blessed_extension"] |
| 806 } | 807 } |
| 807 } | 808 } |
| OLD | NEW |