Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: extensions/common/api/_api_features.json

Issue 596003002: Allow declarative webrequest and webrequest in extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small changes are made accoding to Ken's comments. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 "app.currentWindowInternal": { 62 "app.currentWindowInternal": {
63 "noparent": true, 63 "noparent": true,
64 "internal": true, 64 "internal": true,
65 "channel": "stable", 65 "channel": "stable",
66 "contexts": ["blessed_extension"] 66 "contexts": ["blessed_extension"]
67 }, 67 },
68 "app.currentWindowInternal.setShape": { 68 "app.currentWindowInternal.setShape": {
69 "dependencies": ["permission:app.window.shape"], 69 "dependencies": ["permission:app.window.shape"],
70 "contexts": ["blessed_extension"] 70 "contexts": ["blessed_extension"]
71 }, 71 },
72 "declarativeWebRequest": {
73 "dependencies": ["permission:declarativeWebRequest"],
74 "contexts": ["blessed_extension"]
75 },
72 "dns": { 76 "dns": {
73 "dependencies": ["permission:dns"], 77 "dependencies": ["permission:dns"],
74 "contexts": ["blessed_extension"] 78 "contexts": ["blessed_extension"]
75 }, 79 },
76 // This is not a real API, only here for documentation purposes. 80 // This is not a real API, only here for documentation purposes.
77 // See http://crbug.com/275944 for background. 81 // See http://crbug.com/275944 for background.
78 "extensionTypes": { 82 "extensionTypes": {
79 "internal": true, 83 "internal": true,
80 "channel": "stable", 84 "channel": "stable",
81 "extension_types": ["extension", "legacy_packaged_app", "platform_app"], 85 "extension_types": ["extension", "legacy_packaged_app", "platform_app"],
82 "contexts": ["blessed_extension"] 86 "contexts": ["blessed_extension"]
83 }, 87 },
88 "events": {
89 "internal": true,
90 "channel": "stable",
91 "extension_types": ["platform_app", "extension"],
92 "contexts": "all",
93 "matches": ["<all_urls>"]
94 },
84 "guestViewInternal": [ 95 "guestViewInternal": [
85 { 96 {
86 "internal": true, 97 "internal": true,
87 "channel": "stable", 98 "channel": "stable",
88 "contexts": ["blessed_extension"] 99 "contexts": ["blessed_extension"]
89 }, { 100 }, {
90 "internal": true, 101 "internal": true,
91 "channel": "trunk", 102 "channel": "trunk",
92 "contexts": ["webui"], 103 "contexts": ["webui"],
93 "matches": [ 104 "matches": [
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 "location": "component" 245 "location": "component"
235 }, 246 },
236 "usb": { 247 "usb": {
237 "dependencies": ["permission:usb"], 248 "dependencies": ["permission:usb"],
238 "contexts": ["blessed_extension"] 249 "contexts": ["blessed_extension"]
239 }, 250 },
240 "usbPrivate": { 251 "usbPrivate": {
241 "channel": "dev", 252 "channel": "dev",
242 "contexts": ["webui"] 253 "contexts": ["webui"]
243 }, 254 },
255 "webRequest": {
256 "dependencies": ["permission:webRequest"],
257 "contexts": ["blessed_extension"]
258 },
259 "webRequestInternal": [{
260 "internal": true,
261 "channel": "stable",
262 "contexts": ["blessed_extension"]
263 }, {
264 // webview uses webRequestInternal API.
265 "channel": "stable",
266 "internal": true,
267 "contexts": ["webui"],
268 "matches": ["chrome://chrome-signin/*"]
269 }],
244 "webViewExperimentalInternal": [{ 270 "webViewExperimentalInternal": [{
245 "internal": true, 271 "internal": true,
246 "channel": "dev", 272 "channel": "dev",
247 "contexts": ["blessed_extension"], 273 "contexts": ["blessed_extension"],
248 "dependencies": ["permission:webview"] 274 "dependencies": ["permission:webview"]
249 }, 275 },
250 { 276 {
251 "internal": true, 277 "internal": true,
252 "channel": "stable", 278 "channel": "stable",
253 "contexts": ["blessed_extension"], 279 "contexts": ["blessed_extension"],
254 "dependencies": ["permission:webview"], 280 "dependencies": ["permission:webview"],
255 "whitelist": [ 281 "whitelist": [
256 "8C3741E3AF0B93B6E8E0DDD499BB0B74839EA578", 282 "8C3741E3AF0B93B6E8E0DDD499BB0B74839EA578",
257 "E703483CEF33DEC18B4B6DD84B5C776FB9182BDB", 283 "E703483CEF33DEC18B4B6DD84B5C776FB9182BDB",
258 "1A26E32DE447A17CBE5E9750CDBA78F58539B39C", 284 "1A26E32DE447A17CBE5E9750CDBA78F58539B39C",
259 "59048028102D7B4C681DBC7BC6CD980C3DC66DA3" 285 "59048028102D7B4C681DBC7BC6CD980C3DC66DA3"
260 ] 286 ]
261 }], 287 }],
262 "webViewInternal": [{ 288 "webViewInternal": [{
263 "internal": true, 289 "internal": true,
264 "dependencies": ["permission:webview"], 290 "dependencies": ["permission:webview"],
265 "contexts": ["blessed_extension"] 291 "contexts": ["blessed_extension"]
266 }, { 292 }, {
267 "internal": true, 293 "internal": true,
268 "channel": "dev", 294 "channel": "dev",
269 "contexts": ["webui"], 295 "contexts": ["webui"],
270 "matches": ["chrome://chrome-signin/*"] 296 "matches": ["chrome://chrome-signin/*"]
297 }],
298 "webViewRequest": [{
299 "dependencies": ["permission:webview"],
300 "contexts": ["blessed_extension"]
301 }, {
302 "channel": "stable",
303 "contexts": ["webui"],
304 "matches": ["chrome://chrome-signin/*"]
271 }] 305 }]
272 } 306 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698