summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/api/streams_private.idl
diff options
context:
space:
mode:
authorzork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-26 06:11:22 +0000
committerzork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-26 06:11:22 +0000
commitb9ba3949a1d29e2950bed1f308d46c0e75e3b6ba (patch)
tree19a5b75b6d5c47b756dbade4013e5c8b17a313c3 /chrome/common/extensions/api/streams_private.idl
parentb4cfaa2253999d87e9129e73ac8c645803e3b9c2 (diff)
downloadchromium_src-b9ba3949a1d29e2950bed1f308d46c0e75e3b6ba.zip
chromium_src-b9ba3949a1d29e2950bed1f308d46c0e75e3b6ba.tar.gz
chromium_src-b9ba3949a1d29e2950bed1f308d46c0e75e3b6ba.tar.bz2
Modify chrome.streamsPrivate to provide a single object as the parameter
BUG=345882 Review URL: https://codereview.chromium.org/175593006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253374 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/api/streams_private.idl')
-rw-r--r--chrome/common/extensions/api/streams_private.idl34
1 files changed, 20 insertions, 14 deletions
diff --git a/chrome/common/extensions/api/streams_private.idl b/chrome/common/extensions/api/streams_private.idl
index 1033e88..f81d99d 100644
--- a/chrome/common/extensions/api/streams_private.idl
+++ b/chrome/common/extensions/api/streams_private.idl
@@ -4,24 +4,30 @@
// Streams Private API.
namespace streamsPrivate {
+ dictionary StreamInfo {
+ // The MIME type of the intercepted URL request.
+ DOMString mimeType;
+
+ // The original URL that was intercepted.
+ DOMString originalUrl;
+
+ // The URL that the stream can be read from.
+ DOMString streamUrl;
+
+ // The ID of the tab that opened the stream. If the stream is not opened in
+ // a tab, it will be -1.
+ long tabId;
+
+ // The amount of data the Stream should contain, if known. If there is no
+ // information on the size it will be -1.
+ long expectedContentSize;
+ };
+
interface Events {
// 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.
- static void onExecuteMimeTypeHandler(
- // The MIME type of the intercepted URL request.
- DOMString mimeType,
- // The original URL that was intercepted.
- DOMString originalUrl,
- // The URL that the stream can be read from.
- DOMString streamUrl,
- // The ID of the tab that opened the stream. If the stream is not opened
- // in a tab, it will be -1.
- long tabId,
- // The amount of data the Stream should contain, if known. If there is
- // no information on the size it will be -1.
- long expectedContentSize
- );
+ static void onExecuteMimeTypeHandler(StreamInfo streamInfo);
};
};