netwerk/protocol/viewsource/nsIViewSourceChannel.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netwerk/protocol/viewsource/nsIViewSourceChannel.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,38 @@
     1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#include "nsIChannel.idl"
    1.10 +
    1.11 +[uuid(0073d67c-a64f-4f45-8f36-02cd0abfeca1)]
    1.12 +interface nsIViewSourceChannel : nsIChannel
    1.13 +{
    1.14 +    /**
    1.15 +     * The actual (MIME) content type of the data.
    1.16 +     *
    1.17 +     * nsIViewSourceChannel returns a content type of
    1.18 +     * "application/x-view-source" if you ask it for the contentType
    1.19 +     * attribute.
    1.20 +     *
    1.21 +     * However, callers interested in finding out or setting the
    1.22 +     * actual content type can utilize this attribute.
    1.23 +     */
    1.24 +    attribute ACString originalContentType;
    1.25 +
    1.26 +    /**
    1.27 +     * Whether the channel was created to view the source of a srcdoc document.
    1.28 +     */
    1.29 +    readonly attribute boolean isSrcdocChannel;
    1.30 +
    1.31 +    /**
    1.32 +     * Set to indicate the base URI.  If this channel is a srcdoc channel, it
    1.33 +     * returns the base URI provided by the embedded channel.  It is used to
    1.34 +     * provide an indication of the base URI in circumstances where it isn't
    1.35 +     * otherwise recoverable.  Returns null when it isn't set and isn't a
    1.36 +     * srcdoc channel.
    1.37 +     */
    1.38 +    attribute nsIURI baseURI;
    1.39 +};
    1.40 +
    1.41 +

mercurial