2015-02-13 19:36:47 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
2012-05-21 11:12:37 +00:00
|
|
|
* 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/. */
|
2000-03-30 12:32:18 +00:00
|
|
|
|
|
|
|
#ifndef nsDocShellLoadInfo_h__
|
|
|
|
#define nsDocShellLoadInfo_h__
|
|
|
|
|
|
|
|
// Helper Classes
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
#include "nsString.h"
|
|
|
|
|
|
|
|
// Interfaces Needed
|
|
|
|
#include "nsIDocShellLoadInfo.h"
|
2013-09-03 20:17:26 +00:00
|
|
|
|
|
|
|
class nsIInputStream;
|
|
|
|
class nsISHEntry;
|
|
|
|
class nsIURI;
|
2014-01-13 07:58:16 +00:00
|
|
|
class nsIDocShell;
|
2000-03-30 12:32:18 +00:00
|
|
|
|
|
|
|
class nsDocShellLoadInfo : public nsIDocShellLoadInfo
|
|
|
|
{
|
|
|
|
public:
|
2005-01-05 06:04:46 +00:00
|
|
|
nsDocShellLoadInfo();
|
2000-03-30 12:32:18 +00:00
|
|
|
|
2005-01-05 06:04:46 +00:00
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSIDOCSHELLLOADINFO
|
2000-03-30 12:32:18 +00:00
|
|
|
|
|
|
|
protected:
|
2005-01-05 06:04:46 +00:00
|
|
|
virtual ~nsDocShellLoadInfo();
|
2000-03-30 12:32:18 +00:00
|
|
|
|
|
|
|
protected:
|
2015-02-13 19:36:37 +00:00
|
|
|
nsCOMPtr<nsIURI> mReferrer;
|
2015-09-30 06:54:39 +00:00
|
|
|
nsCOMPtr<nsIURI> mOriginalURI;
|
2016-07-28 07:20:41 +00:00
|
|
|
nsCOMPtr<nsIPrincipal> mTriggeringPrincipal;
|
2016-06-28 08:03:25 +00:00
|
|
|
bool mLoadReplace;
|
2016-07-28 07:20:41 +00:00
|
|
|
bool mInheritPrincipal;
|
|
|
|
bool mPrincipalIsExplicit;
|
2015-02-13 19:36:37 +00:00
|
|
|
bool mSendReferrer;
|
|
|
|
nsDocShellInfoReferrerPolicy mReferrerPolicy;
|
|
|
|
nsDocShellInfoLoadType mLoadType;
|
|
|
|
nsCOMPtr<nsISHEntry> mSHEntry;
|
|
|
|
nsString mTarget;
|
|
|
|
nsCOMPtr<nsIInputStream> mPostDataStream;
|
|
|
|
nsCOMPtr<nsIInputStream> mHeadersStream;
|
|
|
|
bool mIsSrcdocLoad;
|
|
|
|
nsString mSrcdocData;
|
|
|
|
nsCOMPtr<nsIDocShell> mSourceDocShell;
|
|
|
|
nsCOMPtr<nsIURI> mBaseURI;
|
2000-03-30 12:32:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsDocShellLoadInfo_h__ */
|