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

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

Issue 12645004: Add Resource Handler for creating Streams to forward to extensions (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 years, 9 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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":"streamsPrivate", 7 "namespace":"streamsPrivate",
8 "types": [ 8 "types": [
9 ], 9 ],
10 10
11 "events": [ 11 "events": [
12 { 12 {
13 "name": "onExecuteMimeTypeHandler", 13 "name": "onExecuteMimeTypeHandler",
14 "type": "function", 14 "type": "function",
15 "description": "Fired when a resource is fetched which matches a mime ty pe handled by this extension. The resource request is cancelled, and the extensi on is expected to handle the request. The event is restricted to a small number of white-listed extensions.", 15 "description": "Fired when a resource is fetched which matches a mime ty pe handled by this extension. The resource request is cancelled, and the extensi on is expected to handle the request. The event is restricted to a small number of white-listed extensions.",
16 "parameters": [ 16 "parameters": [
17 { 17 {
18 "name": "mimeType", 18 "name": "mimeType",
19 "type": "string", 19 "type": "string",
20 "description": "The MIME type of the intercepted URL request." 20 "description": "The MIME type of the intercepted URL request."
21 }, 21 },
22 { 22 {
23 "name": "originalUrl", 23 "name": "originalUrl",
24 "type": "string", 24 "type": "string",
25 "description": "The original URL that was intercepted." 25 "description": "The original URL that was intercepted."
26 },
27 {
28 "name": "streamUrl",
29 "type": "string",
30 "description": "The URL that the stream can be read from."
26 } 31 }
27 ] 32 ]
28 } 33 }
29 ], 34 ],
30 35
31 "functions": [ 36 "functions": [
32 ] 37 ]
33 } 38 }
34 ] 39 ]
35 40
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698