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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 }, | 46 }, |
47 "runtime": { | 47 "runtime": { |
48 "channel": "stable", | 48 "channel": "stable", |
49 "extension_types": ["extension", "legacy_packaged_app", "platform_app"], | 49 "extension_types": ["extension", "legacy_packaged_app", "platform_app"], |
50 "contexts": ["blessed_extension"] | 50 "contexts": ["blessed_extension"] |
51 }, | 51 }, |
52 "runtime.getManifest": { | 52 "runtime.getManifest": { |
53 "contexts": ["blessed_extension", "unblessed_extension", "content_script"] | 53 "contexts": ["blessed_extension", "unblessed_extension", "content_script"] |
54 }, | 54 }, |
55 "runtime.connect": { | 55 "runtime.connect": { |
56 "contexts": "all", | 56 // Everything except WebUI. |
| 57 "contexts": [ |
| 58 "blessed_web_page", |
| 59 "content_script", |
| 60 "blessed_extension", |
| 61 "unblessed_extension", |
| 62 "web_page" |
| 63 ], |
57 "matches": ["<all_urls>"] | 64 "matches": ["<all_urls>"] |
58 }, | 65 }, |
59 "runtime.getURL": { | 66 "runtime.getURL": { |
60 "contexts": ["blessed_extension", "unblessed_extension", "content_script"] | 67 "contexts": ["blessed_extension", "unblessed_extension", "content_script"] |
61 }, | 68 }, |
62 "runtime.id": { | 69 "runtime.id": { |
63 "contexts": ["blessed_extension", "unblessed_extension", "content_script"] | 70 "contexts": ["blessed_extension", "unblessed_extension", "content_script"] |
64 }, | 71 }, |
65 "runtime.lastError": { | 72 "runtime.lastError": { |
66 "contexts": "all", | 73 "contexts": "all", |
67 "extension_types": "all", | 74 "extension_types": "all", |
68 "matches": ["<all_urls>"] | 75 "matches": ["<all_urls>"] |
69 }, | 76 }, |
70 "runtime.onConnect": { | 77 "runtime.onConnect": { |
71 "contexts": ["blessed_extension", "unblessed_extension", "content_script"] | 78 "contexts": ["blessed_extension", "unblessed_extension", "content_script"] |
72 }, | 79 }, |
73 "runtime.onMessage": { | 80 "runtime.onMessage": { |
74 "contexts": ["blessed_extension", "unblessed_extension", "content_script"] | 81 "contexts": ["blessed_extension", "unblessed_extension", "content_script"] |
75 }, | 82 }, |
76 "runtime.sendMessage": { | 83 "runtime.sendMessage": { |
77 "contexts": "all", | 84 // Everything except WebUI. |
| 85 "contexts": [ |
| 86 "blessed_web_page", |
| 87 "content_script", |
| 88 "blessed_extension", |
| 89 "unblessed_extension", |
| 90 "web_page" |
| 91 ], |
78 "matches": ["<all_urls>"] | 92 "matches": ["<all_urls>"] |
79 }, | 93 }, |
80 "runtime.setUninstallURL": { | 94 "runtime.setUninstallURL": { |
81 "channel": "dev" | 95 "channel": "dev" |
82 }, | 96 }, |
83 "socket": { | 97 "socket": { |
84 "dependencies": ["permission:socket"], | 98 "dependencies": ["permission:socket"], |
85 "contexts": ["blessed_extension"] | 99 "contexts": ["blessed_extension"] |
86 }, | 100 }, |
87 "sockets.tcp": { | 101 "sockets.tcp": { |
88 "dependencies": ["manifest:sockets"], | 102 "dependencies": ["manifest:sockets"], |
89 "contexts": ["blessed_extension"] | 103 "contexts": ["blessed_extension"] |
90 }, | 104 }, |
91 "sockets.tcpServer": { | 105 "sockets.tcpServer": { |
92 "dependencies": ["manifest:sockets"], | 106 "dependencies": ["manifest:sockets"], |
93 "contexts": ["blessed_extension"] | 107 "contexts": ["blessed_extension"] |
94 }, | 108 }, |
95 "sockets.udp": { | 109 "sockets.udp": { |
96 "dependencies": ["manifest:sockets"], | 110 "dependencies": ["manifest:sockets"], |
97 "contexts": ["blessed_extension"] | 111 "contexts": ["blessed_extension"] |
98 }, | 112 }, |
99 "storage": { | 113 "storage": { |
100 "dependencies": ["permission:storage"], | 114 "dependencies": ["permission:storage"], |
101 "contexts": ["blessed_extension", "unblessed_extension", "content_script"] | 115 "contexts": ["blessed_extension", "unblessed_extension", "content_script"] |
102 }, | 116 }, |
103 "test": { | 117 "test": { |
104 "internal": true, | 118 "internal": true, |
105 "channel": "stable", | 119 "channel": "stable", |
106 "extension_types": "all", | 120 "extension_types": "all", |
107 "contexts": ["blessed_extension", "unblessed_extension", "content_script"] | 121 // Everything except web pages. |
| 122 "contexts": [ |
| 123 "blessed_extension", |
| 124 "content_script", |
| 125 "unblessed_extension", |
| 126 "webui" |
| 127 ] |
108 }, | 128 }, |
109 "types": { | 129 "types": { |
110 "channel": "stable", | 130 "channel": "stable", |
111 "extension_types": ["extension", "legacy_packaged_app", "platform_app"], | 131 "extension_types": ["extension", "legacy_packaged_app", "platform_app"], |
112 "contexts": ["blessed_extension"] | 132 "contexts": ["blessed_extension"] |
113 }, | 133 }, |
114 "types.private": { | 134 "types.private": { |
115 "channel": "dev", | 135 "channel": "dev", |
116 "extension_types": ["extension"], | 136 "extension_types": ["extension"], |
117 "location": "component" | 137 "location": "component" |
118 }, | 138 }, |
119 "usb": { | 139 "usb": { |
120 "dependencies": ["permission:usb"], | 140 "dependencies": ["permission:usb"], |
121 "contexts": ["blessed_extension"] | 141 "contexts": ["blessed_extension"] |
122 } | 142 } |
123 } | 143 } |
OLD | NEW |