Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / chrome / common / extensions / api / streams_private.json
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
3 // found in the LICENSE file.
4
5 [
6   {
7     "namespace":"streamsPrivate",
8     "description": "none",
9     "events": [
10       {
11         "name": "onExecuteMimeTypeHandler",
12         "type": "function",
13         "description": "Fired when a resource is fetched which matches a mime type handled by this extension. The resource request is cancelled, and the extension is expected to handle the request. The event is restricted to a small number of white-listed extensions.",
14         "parameters": [
15           {
16             "name": "mimeType",
17             "type": "string",
18             "description": "The MIME type of the intercepted URL request."
19           },
20           {
21             "name": "originalUrl",
22             "type": "string",
23             "description": "The original URL that was intercepted."
24           },
25           {
26             "name": "streamUrl",
27             "type": "string",
28             "description": "The URL that the stream can be read from."
29           },
30           {
31             "name": "tabId",
32             "type": "integer",
33             "description": "The ID of the tab that opened the stream. If the stream is not opened in a tab, it will be -1."
34           },
35           {
36             "name": "expectedContentSize",
37             "type": "integer",
38             "description": "The amount of data the Stream should contain, if known.  If there is no information on the size it will be -1."
39           }
40         ]
41       }
42     ],
43
44     "functions": [
45     ]
46   }
47 ]
48