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

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

Issue 1055673002: [Extensions API] Remove inline enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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": { 9 "compiler_options": {
10 "implemented_in": "extensions/browser/api/web_request/web_request_api.h" 10 "implemented_in": "extensions/browser/api/web_request/web_request_api.h"
11 }, 11 },
12 "types": [
13 {
14 "id": "AddEventListenerOptions",
15 "type": "string",
16 "enum": ["requestHeaders", "responseHeaders", "blocking", "asyncBlocking ", "requestBody"]
17 }
18 ],
12 "functions": [ 19 "functions": [
13 { 20 {
14 "name": "addEventListener", 21 "name": "addEventListener",
15 "type": "function", 22 "type": "function",
16 "description": "Used internally to implement the special form of addList ener for the webRequest events.", 23 "description": "Used internally to implement the special form of addList ener for the webRequest events.",
17 "parameters": [ 24 "parameters": [
18 {"type": "function", "name": "callback"}, 25 {"type": "function", "name": "callback"},
19 { 26 {
20 "$ref": "webRequest.RequestFilter", 27 "$ref": "webRequest.RequestFilter",
21 "name": "filter", 28 "name": "filter",
22 "description": "A set of filters that restricts the events that will be sent to this listener." 29 "description": "A set of filters that restricts the events that will be sent to this listener."
23 }, 30 },
24 { 31 {
25 "type": "array", 32 "type": "array",
26 "optional": true, 33 "optional": true,
27 "name": "extraInfoSpec", 34 "name": "extraInfoSpec",
28 "description": "Array of extra information that should be passed to the listener function.", 35 "description": "Array of extra information that should be passed to the listener function.",
29 "items": { 36 "items": {
30 "type": "string", 37 "$ref": "AddEventListenerOptions"
31 "enum": ["requestHeaders", "responseHeaders", "blocking", "asyncBl ocking", "requestBody"]
32 } 38 }
33 }, 39 },
34 {"type": "string", "name": "eventName"}, 40 {"type": "string", "name": "eventName"},
35 {"type": "string", "name": "subEventName"}, 41 {"type": "string", "name": "subEventName"},
36 {"type": "integer", "name": "webViewInstanceId"} 42 {"type": "integer", "name": "webViewInstanceId"}
37 ] 43 ]
38 }, 44 },
39 { 45 {
40 "name": "eventHandled", 46 "name": "eventHandled",
41 "type": "function", 47 "type": "function",
42 "description": "Used internally to send a response for a blocked event." , 48 "description": "Used internally to send a response for a blocked event." ,
43 "parameters": [ 49 "parameters": [
44 {"type": "string", "name": "eventName"}, 50 {"type": "string", "name": "eventName"},
45 {"type": "string", "name": "subEventName"}, 51 {"type": "string", "name": "subEventName"},
46 {"type": "string", "name": "requestId"}, 52 {"type": "string", "name": "requestId"},
47 { 53 {
48 "$ref": "webRequest.BlockingResponse", 54 "$ref": "webRequest.BlockingResponse",
49 "optional": true, 55 "optional": true,
50 "name": "response" 56 "name": "response"
51 } 57 }
52 ] 58 ]
53 } 59 }
54 ] 60 ]
55 } 61 }
56 ] 62 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698