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

Side by Side Diff: extensions/common/api/mime_handler_private.idl

Issue 1092163004: Ignore non-ASCII headers in the mimeHandlerPrivate API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « extensions/common/api/mime_handler.mojom ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 // Mime handler API. 5 // Mime handler API.
6 [nodoc] namespace mimeHandlerPrivate { 6 [nodoc] namespace mimeHandlerPrivate {
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. If the stream is not opened in
18 // a tab, it will be -1. 18 // a tab, it will be -1.
19 long tabId; 19 long tabId;
20 20
21 // The HTTP response headers of the intercepted request stored as a 21 // The HTTP response headers of the intercepted request stored as a
22 // dictionary mapping header name to header value. If a header name appears 22 // dictionary mapping header name to header value. If a header name appears
23 // multiple times, the header values are merged in the dictionary and 23 // multiple times, the header values are merged in the dictionary and
24 // separated by a ", ". 24 // separated by a ", ". Non-ASCII headers are dropped.
25 object responseHeaders; 25 object responseHeaders;
26 26
27 // Whether the stream is embedded within another document. 27 // Whether the stream is embedded within another document.
28 boolean embedded; 28 boolean embedded;
29 }; 29 };
30 30
31 callback AbortCallback = void (); 31 callback AbortCallback = void ();
32 callback GetStreamDetailsCallback = void (StreamInfo streamInfo); 32 callback GetStreamDetailsCallback = void (StreamInfo streamInfo);
33 33
34 interface Functions { 34 interface Functions {
35 // Returns the StreamInfo for the stream for this context if there is one. 35 // Returns the StreamInfo for the stream for this context if there is one.
36 [nocompile] static void getStreamInfo(GetStreamDetailsCallback callback); 36 [nocompile] static void getStreamInfo(GetStreamDetailsCallback callback);
37 37
38 // Aborts the stream for this context if there is one. 38 // Aborts the stream for this context if there is one.
39 [nocompile] static void abortStream(optional AbortCallback callback); 39 [nocompile] static void abortStream(optional AbortCallback callback);
40 }; 40 };
41 }; 41 };
OLDNEW
« no previous file with comments | « extensions/common/api/mime_handler.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698