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

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

Issue 2700553002: Introduce WebRequestResourceType. (Closed)
Patch Set: Make compiler happy; make type<->string mapping self-checking. Created 3 years, 10 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": "webRequest", 7 "namespace": "webRequest",
8 "description": "Use the <code>chrome.webRequest</code> API to observe and an alyze traffic and to intercept, block, or modify requests in-flight.", 8 "description": "Use the <code>chrome.webRequest</code> API to observe and an alyze traffic and to intercept, block, or modify requests in-flight.",
9 "properties": { 9 "properties": {
10 "MAX_HANDLER_BEHAVIOR_CHANGED_CALLS_PER_10_MINUTES": { 10 "MAX_HANDLER_BEHAVIOR_CHANGED_CALLS_PER_10_MINUTES": {
11 "value": 20, 11 "value": 20,
12 "description": "The maximum number of times that <code>handlerBehaviorCh anged</code> can be called per 10 minute sustained interval. <code>handlerBehavi orChanged</code> is an expensive function call that shouldn't be called often." 12 "description": "The maximum number of times that <code>handlerBehaviorCh anged</code> can be called per 10 minute sustained interval. <code>handlerBehavi orChanged</code> is an expensive function call that shouldn't be called often."
13 } 13 }
14 }, 14 },
15 "types": [ 15 "types": [
16 { 16 {
17 "id": "ResourceType", 17 "id": "ResourceType",
18 "type": "string", 18 "type": "string",
19 "enum": ["main_frame", "sub_frame", "stylesheet", "script", "image", "fo nt", "object", "xmlhttprequest", "ping", "other"] 19 "enum": ["main_frame", "sub_frame", "stylesheet", "script", "image", "fo nt", "object", "xmlhttprequest", "ping", "media", "websocket", "other"]
20 }, 20 },
21 { 21 {
22 "id": "OnBeforeRequestOptions", 22 "id": "OnBeforeRequestOptions",
23 "type": "string", 23 "type": "string",
24 "enum": ["blocking", "requestBody"] 24 "enum": ["blocking", "requestBody"]
25 }, 25 },
26 { 26 {
27 "id": "OnBeforeSendHeadersOptions", 27 "id": "OnBeforeSendHeadersOptions",
28 "type": "string", 28 "type": "string",
29 "enum": ["requestHeaders", "blocking"] 29 "enum": ["requestHeaders", "blocking"]
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 { 573 {
574 "$ref": "RequestFilter", 574 "$ref": "RequestFilter",
575 "name": "filter", 575 "name": "filter",
576 "description": "A set of filters that restricts the events that will be sent to this listener." 576 "description": "A set of filters that restricts the events that will be sent to this listener."
577 } 577 }
578 ] 578 ]
579 } 579 }
580 ] 580 ]
581 } 581 }
582 ] 582 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698