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

Side by Side Diff: chrome/common/extensions/api/web_request_internal.json

Issue 228343002: Cleanup webRequest/Internal API and permission registration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
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 [ 5 [
6 { 6 {
7 "namespace": "webRequestInternal", 7 "namespace": "webRequestInternal",
8 "description": "none", 8 "description": "none",
9 "compiler_options": {
10 "implemented_in": "chrome/browser/extensions/api/web_request/web_request_a pi.h"
11 },
9 "functions": [ 12 "functions": [
10 { 13 {
11 "name": "addEventListener", 14 "name": "addEventListener",
15 "nocompile": true,
not at google - send to devlin 2014/04/08 15:09:36 You should be able to do a bit more cleanup here:
pneubeck (no reviews) 2014/04/09 09:08:15 Doh.. of course the RegisterFunction calls have to
12 "type": "function", 16 "type": "function",
13 "description": "Used internally to implement the special form of addList ener for the webRequest events.", 17 "description": "Used internally to implement the special form of addList ener for the webRequest events.",
14 "parameters": [ 18 "parameters": [
15 {"type": "function", "name": "callback"}, 19 {"type": "function", "name": "callback"},
16 { 20 {
17 "$ref": "webRequest.RequestFilter", 21 "$ref": "webRequest.RequestFilter",
18 "name": "filter", 22 "name": "filter",
19 "description": "A set of filters that restricts the events that will be sent to this listener." 23 "description": "A set of filters that restricts the events that will be sent to this listener."
20 }, 24 },
21 { 25 {
22 "type": "array", 26 "type": "array",
23 "optional": true, 27 "optional": true,
24 "name": "extraInfoSpec", 28 "name": "extraInfoSpec",
25 "description": "Array of extra information that should be passed to the listener function.", 29 "description": "Array of extra information that should be passed to the listener function.",
26 "items": { 30 "items": {
27 "type": "string", 31 "type": "string",
28 "enum": ["requestHeaders", "responseHeaders", "blocking", "asyncBl ocking", "requestBody"] 32 "enum": ["requestHeaders", "responseHeaders", "blocking", "asyncBl ocking", "requestBody"]
29 } 33 }
30 }, 34 },
31 {"type": "string", "name": "eventName"}, 35 {"type": "string", "name": "eventName"},
32 {"type": "string", "name": "subEventName"}, 36 {"type": "string", "name": "subEventName"},
33 {"type": "integer", "name": "webViewInstanceId"} 37 {"type": "integer", "name": "webViewInstanceId"}
34 ] 38 ]
35 }, 39 },
36 { 40 {
37 "name": "eventHandled", 41 "name": "eventHandled",
42 "nocompile": true,
38 "type": "function", 43 "type": "function",
39 "description": "Used internally to send a response for a blocked event." , 44 "description": "Used internally to send a response for a blocked event." ,
40 "parameters": [ 45 "parameters": [
41 {"type": "string", "name": "eventName"}, 46 {"type": "string", "name": "eventName"},
42 {"type": "string", "name": "subEventName"}, 47 {"type": "string", "name": "subEventName"},
43 {"type": "string", "name": "requestId"}, 48 {"type": "string", "name": "requestId"},
44 { 49 {
45 "$ref": "webRequest.BlockingResponse", 50 "$ref": "webRequest.BlockingResponse",
46 "optional": true, 51 "optional": true,
47 "name": "response" 52 "name": "response"
48 } 53 }
49 ] 54 ]
50 } 55 }
51 ] 56 ]
52 } 57 }
53 ] 58 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698