2000-03-30 16:29:11 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
2004-04-18 01:52:36 +04:00
|
|
|
* ***** BEGIN LICENSE BLOCK *****
|
|
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at
|
|
|
|
* http://www.mozilla.org/MPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* License.
|
|
|
|
*
|
2000-03-30 16:29:11 +04:00
|
|
|
* The Original Code is the Mozilla browser.
|
2004-04-18 01:52:36 +04:00
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is
|
|
|
|
* Netscape Communications, Inc.
|
|
|
|
* Portions created by the Initial Developer are Copyright (C) 1999
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
|
|
|
*
|
2000-03-30 16:29:11 +04:00
|
|
|
* Contributor(s):
|
|
|
|
* Travis Bogard <travis@netscape.com>
|
2000-09-22 09:04:58 +04:00
|
|
|
* Viswanath Ramachandran <vishy@netscape.com>
|
2004-04-18 01:52:36 +04:00
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
|
|
|
* either of the GNU General Public License Version 2 or later (the "GPL"),
|
|
|
|
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
* use your version of this file under the terms of the MPL, indicate your
|
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
|
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
*
|
|
|
|
* ***** END LICENSE BLOCK ***** */
|
2000-03-30 16:29:11 +04:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The nsIDocShellLoadInfo interface defines an interface for specifying
|
|
|
|
* setup information used in a nsIDocShell::loadURI call.
|
|
|
|
*/
|
|
|
|
|
|
|
|
interface nsIURI;
|
2001-05-14 06:16:27 +04:00
|
|
|
interface nsIInputStream;
|
2000-06-21 10:40:08 +04:00
|
|
|
interface nsISHEntry;
|
|
|
|
|
2000-06-22 11:22:23 +04:00
|
|
|
typedef long nsDocShellInfoLoadType;
|
2000-03-30 16:29:11 +04:00
|
|
|
|
2009-03-10 09:03:39 +03:00
|
|
|
[scriptable, uuid(92a0a637-373e-4647-9476-ead11e005c75)]
|
2000-03-30 16:29:11 +04:00
|
|
|
interface nsIDocShellLoadInfo : nsISupports
|
|
|
|
{
|
2002-12-13 02:10:59 +03:00
|
|
|
/** This is the referrer for the load. */
|
|
|
|
attribute nsIURI referrer;
|
2000-03-30 16:29:11 +04:00
|
|
|
|
2002-12-13 02:10:59 +03:00
|
|
|
/** The owner of the load, that is, the entity responsible for
|
|
|
|
* causing the load to occur. This should be a nsIPrincipal typically.
|
|
|
|
*/
|
2000-06-14 03:56:30 +04:00
|
|
|
attribute nsISupports owner;
|
2000-06-21 10:40:08 +04:00
|
|
|
|
2002-12-13 02:10:59 +03:00
|
|
|
/** If this attribute is true and no owner is specified, copy
|
|
|
|
* the owner from the referring document.
|
|
|
|
*/
|
2000-08-31 09:53:32 +04:00
|
|
|
attribute boolean inheritOwner;
|
|
|
|
|
2009-03-10 09:03:39 +03:00
|
|
|
/** If this attribute is true only ever use the owner specify by
|
|
|
|
* the owner and inheritOwner attributes.
|
|
|
|
* If there are security reasons for why this is unsafe, such
|
|
|
|
* as trying to use a systemprincipal owner for a content docshell
|
|
|
|
* the load fails.
|
|
|
|
*/
|
|
|
|
attribute boolean ownerIsExplicit;
|
|
|
|
|
2000-06-22 11:22:23 +04:00
|
|
|
/* these are load type enums... */
|
2002-12-13 02:10:59 +03:00
|
|
|
const long loadNormal = 0; // Normal Load
|
|
|
|
const long loadNormalReplace = 1; // Normal Load but replaces current history slot
|
|
|
|
const long loadHistory = 2; // Load from history
|
|
|
|
const long loadReloadNormal = 3; // Reload
|
|
|
|
const long loadReloadBypassCache = 4;
|
|
|
|
const long loadReloadBypassProxy = 5;
|
|
|
|
const long loadReloadBypassProxyAndCache = 6;
|
|
|
|
const long loadLink = 7;
|
|
|
|
const long loadRefresh = 8;
|
|
|
|
const long loadReloadCharsetChange = 9;
|
|
|
|
const long loadBypassHistory = 10;
|
2005-01-20 19:57:04 +03:00
|
|
|
const long loadStopContent = 11;
|
|
|
|
const long loadStopContentAndReplace = 12;
|
2005-07-07 13:45:47 +04:00
|
|
|
const long loadNormalExternal = 13;
|
2006-07-09 01:25:08 +04:00
|
|
|
const long loadNormalBypassCache = 14;
|
|
|
|
const long loadNormalBypassProxy = 15;
|
|
|
|
const long loadNormalBypassProxyAndCache = 16;
|
2010-05-02 12:31:07 +04:00
|
|
|
const long loadPushState = 17; // history.pushState or replaceState
|
2000-06-22 11:22:23 +04:00
|
|
|
|
2002-12-13 02:10:59 +03:00
|
|
|
/** Contains a load type as specified by the load* constants */
|
|
|
|
attribute nsDocShellInfoLoadType loadType;
|
2000-06-22 11:22:23 +04:00
|
|
|
|
2002-12-13 02:10:59 +03:00
|
|
|
/** SHEntry for this page */
|
|
|
|
attribute nsISHEntry SHEntry;
|
2000-09-22 09:04:58 +04:00
|
|
|
|
2002-12-13 02:10:59 +03:00
|
|
|
/** Target for load, like _content, _blank etc. */
|
|
|
|
attribute wstring target;
|
2001-05-14 06:16:27 +04:00
|
|
|
|
2002-12-13 02:10:59 +03:00
|
|
|
/** Post data */
|
2001-05-14 06:16:27 +04:00
|
|
|
attribute nsIInputStream postDataStream;
|
2002-12-13 02:10:59 +03:00
|
|
|
|
|
|
|
/** Additional headers */
|
|
|
|
attribute nsIInputStream headersStream;
|
2005-01-05 09:04:46 +03:00
|
|
|
|
|
|
|
/** True if the referrer should be sent, false if it shouldn't be
|
|
|
|
* sent, even if it's available. This attribute defaults to true.
|
|
|
|
*/
|
|
|
|
attribute boolean sendReferrer;
|
2000-06-14 03:56:30 +04:00
|
|
|
};
|