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

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

Issue 726343002: OOP PDF: Add whether a resource is embedded to StreamInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@embedded-pdfs
Patch Set: !streamDetails.embedded => 'full-frame' Created 6 years, 1 month 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 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
(...skipping 13 matching lines...) Expand all
24 24
25 // The amount of data the Stream should contain, if known. If there is no 25 // The amount of data the Stream should contain, if known. If there is no
26 // information on the size it will be -1. 26 // information on the size it will be -1.
27 long expectedContentSize; 27 long expectedContentSize;
28 28
29 // The HTTP response headers of the intercepted request stored as a 29 // The HTTP response headers of the intercepted request stored as a
30 // dictionary mapping header name to header value. If a header name appears 30 // dictionary mapping header name to header value. If a header name appears
31 // multiple times, the header values are merged in the dictionary and 31 // multiple times, the header values are merged in the dictionary and
32 // separated by a ", ". 32 // separated by a ", ".
33 object responseHeaders; 33 object responseHeaders;
34
35 // Whether the stream is embedded within another document.
36 boolean embedded;
34 }; 37 };
35 38
36 callback AbortCallback = void (); 39 callback AbortCallback = void ();
37 40
38 interface Functions { 41 interface Functions {
39 // Abort the URL request on the given stream. 42 // Abort the URL request on the given stream.
40 // |streamUrl| : The URL of the stream to abort. 43 // |streamUrl| : The URL of the stream to abort.
41 // |callback| : Called when the stream URL is guaranteed to be invalid. The 44 // |callback| : Called when the stream URL is guaranteed to be invalid. The
42 // underlying URL request may not yet have been aborted when this is run. 45 // underlying URL request may not yet have been aborted when this is run.
43 static void abort(DOMString streamUrl, 46 static void abort(DOMString streamUrl,
44 optional AbortCallback callback); 47 optional AbortCallback callback);
45 }; 48 };
46 49
47 interface Events { 50 interface Events {
48 // Fired when a resource is fetched which matches a mime type handled by 51 // Fired when a resource is fetched which matches a mime type handled by
49 // this extension. The resource request is cancelled, and the extension is 52 // this extension. The resource request is cancelled, and the extension is
50 // expected to handle the request. The event is restricted to a small number 53 // expected to handle the request. The event is restricted to a small number
51 // of white-listed extensions. 54 // of white-listed extensions.
52 static void onExecuteMimeTypeHandler(StreamInfo streamInfo); 55 static void onExecuteMimeTypeHandler(StreamInfo streamInfo);
53 }; 56 };
54 }; 57 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698