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

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

Issue 1515703005: WebRequest API: add more resource types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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": "declarativeWebRequest", 7 "namespace": "declarativeWebRequest",
8 "description": "<em><strong>Note:</strong> this API is currently on hold, wi thout concrete plans to move to stable.</em> Use the <code>chrome.declarativeWeb Request</code> API to intercept, block, or modify requests in-flight. It is sign ificantly faster than the <a href='webRequest'><code>chrome.webRequest</code> AP I</a> because you can register rules that are evaluated in the browser rather th an the JavaScript engine with reduces roundtrip latencies and allows higher effi ciency.", 8 "description": "<em><strong>Note:</strong> this API is currently on hold, wi thout concrete plans to move to stable.</em> Use the <code>chrome.declarativeWeb Request</code> API to intercept, block, or modify requests in-flight. It is sign ificantly faster than the <a href='webRequest'><code>chrome.webRequest</code> AP I</a> because you can register rules that are evaluated in the browser rather th an the JavaScript engine with reduces roundtrip latencies and allows higher effi ciency.",
9 "types": [ 9 "types": [
10 { 10 {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 }, 72 },
73 "firstPartyForCookiesUrl": { 73 "firstPartyForCookiesUrl": {
74 "$ref": "events.UrlFilter", 74 "$ref": "events.UrlFilter",
75 "description": "Matches if the conditions of the UrlFilter are fulfi lled for the 'first party' URL of the request. The 'first party' URL of a reques t, when present, can be different from the request's target URL, and describes w hat is considered 'first party' for the sake of third-party checks for cookies." , 75 "description": "Matches if the conditions of the UrlFilter are fulfi lled for the 'first party' URL of the request. The 'first party' URL of a reques t, when present, can be different from the request's target URL, and describes w hat is considered 'first party' for the sake of third-party checks for cookies." ,
76 "optional": true 76 "optional": true
77 }, 77 },
78 "resourceType": { 78 "resourceType": {
79 "type": "array", 79 "type": "array",
80 "optional": true, 80 "optional": true,
81 "description": "Matches if the request type of a request is containe d in the list. Requests that cannot match any of the types will be filtered out. ", 81 "description": "Matches if the request type of a request is containe d in the list. Requests that cannot match any of the types will be filtered out. ",
82 "items": { "type": "string", "enum": ["main_frame", "sub_frame", "st ylesheet", "script", "image", "object", "xmlhttprequest", "other"] } 82 "items": { "type": "string", "enum": ["main_frame", "sub_frame", "st ylesheet", "script", "image", "font", "object", "xmlhttprequest", "ping", "other "] }
83 }, 83 },
84 "contentType": { 84 "contentType": {
85 "type": "array", 85 "type": "array",
86 "optional": true, 86 "optional": true,
87 "description": "Matches if the MIME media type of a response (from t he HTTP Content-Type header) is contained in the list.", 87 "description": "Matches if the MIME media type of a response (from t he HTTP Content-Type header) is contained in the list.",
88 "items": { "type": "string" } 88 "items": { "type": "string" }
89 }, 89 },
90 "excludeContentType": { 90 "excludeContentType": {
91 "type": "array", 91 "type": "array",
92 "optional": true, 92 "optional": true,
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 "tabId": {"type": "integer", "description": "The ID of the tab in which the request takes place. Set to -1 if the request isn't related to a tab." }, 588 "tabId": {"type": "integer", "description": "The ID of the tab in which the request takes place. Set to -1 if the request isn't related to a tab." },
589 "type": {"type": "string", "enum": ["main_frame", "sub_frame", "st ylesheet", "script", "image", "object", "xmlhttprequest", "other"], "description ": "How the requested resource will be used."}, 589 "type": {"type": "string", "enum": ["main_frame", "sub_frame", "st ylesheet", "script", "image", "object", "xmlhttprequest", "other"], "description ": "How the requested resource will be used."},
590 "timeStamp": {"type": "number", "description": "The time when this signal is triggered, in milliseconds since the epoch."} 590 "timeStamp": {"type": "number", "description": "The time when this signal is triggered, in milliseconds since the epoch."}
591 } 591 }
592 } 592 }
593 ] 593 ]
594 } 594 }
595 ] 595 ]
596 } 596 }
597 ] 597 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698