| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/extensions. | 5 // This features file defines extension APIs implemented under src/extensions. |
| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 "contexts": ["blessed_extension"] | 107 "contexts": ["blessed_extension"] |
| 108 }, | 108 }, |
| 109 "sockets.udp": { | 109 "sockets.udp": { |
| 110 "dependencies": ["manifest:sockets"], | 110 "dependencies": ["manifest:sockets"], |
| 111 "contexts": ["blessed_extension"] | 111 "contexts": ["blessed_extension"] |
| 112 }, | 112 }, |
| 113 "storage": { | 113 "storage": { |
| 114 "dependencies": ["permission:storage"], | 114 "dependencies": ["permission:storage"], |
| 115 "contexts": ["blessed_extension", "unblessed_extension", "content_script"] | 115 "contexts": ["blessed_extension", "unblessed_extension", "content_script"] |
| 116 }, | 116 }, |
| 117 "test": { | 117 "test": [{ |
| 118 "internal": true, | 118 "internal": true, |
| 119 "channel": "stable", | 119 "channel": "stable", |
| 120 "extension_types": "all", | 120 "extension_types": "all", |
| 121 // Everything except web pages. | 121 // Everything except web pages and WebUI. WebUI is declared in a separate |
| 122 "contexts": [ | 122 // rule to keep the "matches" property isolated. |
| 123 "blessed_extension", | 123 "contexts": ["blessed_extension", "content_script", "unblessed_extension"] |
| 124 "content_script", | 124 }, { |
| 125 "unblessed_extension", | 125 "internal": true, |
| 126 "webui" | 126 "channel": "stable", |
| 127 "contexts": ["webui"], |
| 128 "matches": [ |
| 129 "chrome://extensions-frame/*" |
| 127 ] | 130 ] |
| 128 }, | 131 }], |
| 129 "types": { | 132 "types": { |
| 130 "channel": "stable", | 133 "channel": "stable", |
| 131 "extension_types": ["extension", "legacy_packaged_app", "platform_app"], | 134 "extension_types": ["extension", "legacy_packaged_app", "platform_app"], |
| 132 "contexts": ["blessed_extension"] | 135 "contexts": ["blessed_extension"] |
| 133 }, | 136 }, |
| 134 "types.private": { | 137 "types.private": { |
| 135 "channel": "dev", | 138 "channel": "dev", |
| 136 "extension_types": ["extension"], | 139 "extension_types": ["extension"], |
| 137 "location": "component" | 140 "location": "component" |
| 138 }, | 141 }, |
| 139 "usb": { | 142 "usb": { |
| 140 "dependencies": ["permission:usb"], | 143 "dependencies": ["permission:usb"], |
| 141 "contexts": ["blessed_extension"] | 144 "contexts": ["blessed_extension"] |
| 142 } | 145 } |
| 143 } | 146 } |
| OLD | NEW |