2001-09-28 20:14:13 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2001-04-16 20:00:20 +00:00
|
|
|
|
|
|
|
#include "nsIChannel.idl"
|
|
|
|
|
2015-08-19 17:43:30 +00:00
|
|
|
[uuid(3e9800f8-edb7-4c9a-9285-09b4f045b019)]
|
2001-04-16 20:00:20 +00:00
|
|
|
interface nsIViewSourceChannel : nsIChannel
|
|
|
|
{
|
|
|
|
/**
|
2002-09-03 22:10:08 +00:00
|
|
|
* The actual (MIME) content type of the data.
|
|
|
|
*
|
|
|
|
* nsIViewSourceChannel returns a content type of
|
|
|
|
* "application/x-view-source" if you ask it for the contentType
|
|
|
|
* attribute.
|
|
|
|
*
|
|
|
|
* However, callers interested in finding out or setting the
|
|
|
|
* actual content type can utilize this attribute.
|
2001-04-16 20:00:20 +00:00
|
|
|
*/
|
2016-11-23 09:21:17 +00:00
|
|
|
[must_use] attribute ACString originalContentType;
|
2013-09-10 17:40:35 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether the channel was created to view the source of a srcdoc document.
|
|
|
|
*/
|
2016-11-23 09:21:17 +00:00
|
|
|
[must_use] readonly attribute boolean isSrcdocChannel;
|
2015-08-19 17:43:30 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set to indicate the base URI. If this channel is a srcdoc channel, it
|
|
|
|
* returns the base URI provided by the embedded channel. It is used to
|
|
|
|
* provide an indication of the base URI in circumstances where it isn't
|
|
|
|
* otherwise recoverable. Returns null when it isn't set and isn't a
|
|
|
|
* srcdoc channel.
|
|
|
|
*/
|
2016-11-23 09:21:17 +00:00
|
|
|
[must_use] attribute nsIURI baseURI;
|
2001-04-16 20:00:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|