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

Unified 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: Latest master 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/common/api/web_request.json ('k') | extensions/common/api/web_view_internal.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/api/web_request_internal.json
diff --git a/extensions/common/api/web_request_internal.json b/extensions/common/api/web_request_internal.json
index 6861f5db17e9e0f4055cb923517ccfd84b138386..4adcd06dacb97991fb7f4c7c1faa14416801bf6c 100644
--- a/extensions/common/api/web_request_internal.json
+++ b/extensions/common/api/web_request_internal.json
@@ -9,6 +9,13 @@
"compiler_options": {
"implemented_in": "extensions/browser/api/web_request/web_request_api.h"
},
+ "types": [
+ {
+ "id": "AddEventListenerOptions",
+ "type": "string",
+ "enum": ["requestHeaders", "responseHeaders", "blocking", "asyncBlocking", "requestBody"]
+ }
+ ],
"functions": [
{
"name": "addEventListener",
@@ -27,8 +34,7 @@
"name": "extraInfoSpec",
"description": "Array of extra information that should be passed to the listener function.",
"items": {
- "type": "string",
- "enum": ["requestHeaders", "responseHeaders", "blocking", "asyncBlocking", "requestBody"]
+ "$ref": "AddEventListenerOptions"
}
},
{"type": "string", "name": "eventName"},
« no previous file with comments | « extensions/common/api/web_request.json ('k') | extensions/common/api/web_view_internal.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698