Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include "nsIChannel.idl"
8 [uuid(0073d67c-a64f-4f45-8f36-02cd0abfeca1)]
9 interface nsIViewSourceChannel : nsIChannel
10 {
11 /**
12 * The actual (MIME) content type of the data.
13 *
14 * nsIViewSourceChannel returns a content type of
15 * "application/x-view-source" if you ask it for the contentType
16 * attribute.
17 *
18 * However, callers interested in finding out or setting the
19 * actual content type can utilize this attribute.
20 */
21 attribute ACString originalContentType;
23 /**
24 * Whether the channel was created to view the source of a srcdoc document.
25 */
26 readonly attribute boolean isSrcdocChannel;
28 /**
29 * Set to indicate the base URI. If this channel is a srcdoc channel, it
30 * returns the base URI provided by the embedded channel. It is used to
31 * provide an indication of the base URI in circumstances where it isn't
32 * otherwise recoverable. Returns null when it isn't set and isn't a
33 * srcdoc channel.
34 */
35 attribute nsIURI baseURI;
36 };