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/. */
5
6#include "nsIChannel.idl"
7
8[uuid(3e9800f8-edb7-4c9a-9285-09b4f045b019)]
9interface 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;
22
23    /**
24     * Whether the channel was created to view the source of a srcdoc document.
25     */
26    readonly attribute boolean isSrcdocChannel;
27
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};
37
38
39