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

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

Issue 263513004: Forward MIME types to BrowserPlugin when a viewer is specified. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review fixes Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // Streams Private API. 5 // Streams Private API.
6 namespace streamsPrivate { 6 namespace streamsPrivate {
7 dictionary StreamInfo { 7 dictionary StreamInfo {
8 // The MIME type of the intercepted URL request. 8 // The MIME type of the intercepted URL request.
9 DOMString mimeType; 9 DOMString mimeType;
10 10
11 // The original URL that was intercepted. 11 // The original URL that was intercepted.
12 DOMString originalUrl; 12 DOMString originalUrl;
13 13
14 // The URL that the stream can be read from. 14 // The URL that the stream can be read from.
15 DOMString streamUrl; 15 DOMString streamUrl;
16 16
17 // The ID of the tab that opened the stream. If the stream is not opened in 17 // The ID of the tab that opened the stream.
not at google - send to devlin 2014/04/30 15:42:43 "Either/exactly-one-of |tabId| or |viewId| will be
Zachary Kuznia 2014/05/01 00:38:22 Reverted this to old language and behavior.
18 // a tab, it will be -1. 18 long? tabId;
19 long tabId; 19
20 // The ID of the view that will render the stream.
not at google - send to devlin 2014/04/30 15:42:43 ditto
Zachary Kuznia 2014/05/01 00:38:22 Clarified the conditions where this will be set.
21 DOMString? viewId;
20 22
21 // The amount of data the Stream should contain, if known. If there is no 23 // The amount of data the Stream should contain, if known. If there is no
22 // information on the size it will be -1. 24 // information on the size it will be -1.
23 long expectedContentSize; 25 long expectedContentSize;
24 26
25 // The HTTP response headers of the intercepted request stored as a 27 // The HTTP response headers of the intercepted request stored as a
26 // dictionary mapping header name to header value. If a header name appears 28 // dictionary mapping header name to header value. If a header name appears
27 // multiple times, the header values are merged in the dictionary and 29 // multiple times, the header values are merged in the dictionary and
28 // separated by a ", ". 30 // separated by a ", ".
29 object responseHeaders; 31 object responseHeaders;
30 }; 32 };
31 33
32 interface Events { 34 interface Events {
33 // Fired when a resource is fetched which matches a mime type handled by 35 // Fired when a resource is fetched which matches a mime type handled by
34 // this extension. The resource request is cancelled, and the extension is 36 // this extension. The resource request is cancelled, and the extension is
35 // expected to handle the request. The event is restricted to a small number 37 // expected to handle the request. The event is restricted to a small number
36 // of white-listed extensions. 38 // of white-listed extensions.
37 static void onExecuteMimeTypeHandler(StreamInfo streamInfo); 39 static void onExecuteMimeTypeHandler(StreamInfo streamInfo);
38 }; 40 };
39 }; 41 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698