Finished implementing nsDocShellLoadInfo and hooked up to the build.

git-svn-id: svn://10.0.0.236/trunk@64599 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
tbogard%aol.net
2000-03-30 12:38:18 +00:00
parent 1512a0e91f
commit 00c6261b3a
5 changed files with 17 additions and 11 deletions

View File

@@ -27,7 +27,7 @@
//*** nsDocShellLoadInfo: Object Management
//*****************************************************************************
nsDocShellLoadInfo::nsDocShellLoadInfo() : mReplaceHistorySlot(PR_FALSE)
nsDocShellLoadInfo::nsDocShellLoadInfo() : mReplaceSessionHistorySlot(PR_FALSE)
{
NS_INIT_REFCNT();
}
@@ -61,21 +61,25 @@ NS_IMETHODIMP nsDocShellLoadInfo::GetReferrer(nsIURI** aReferrer)
return NS_OK;
}
NS_IMETOHDIMP nsDocShellLoadInfo::SetReferrer(nsIURI* aReferrer)
NS_IMETHODIMP nsDocShellLoadInfo::SetReferrer(nsIURI* aReferrer)
{
mReferrer = aReferrer;
return NS_OK;
}
NS_IMETHODIMP nsDocShellLoadInfo::
attribute nsIURI referrer;
NS_IMETHODIMP nsDocShellLoadInfo::GetReplaceSessionHistorySlot(PRBool* aReplace)
{
NS_ENSURE_ARG_POINTER(aReplace);
/*
If set to true, this will replace the current history entry without
adding it to session history.
*/
attribute boolean replaceHistorySlot;
*aReplace = mReplaceSessionHistorySlot;
return NS_OK;
}
NS_IMETHODIMP nsDocShellLoadInfo::SetReplaceSessionHistorySlot(PRBool aReplace)
{
mReplaceSessionHistorySlot = aReplace;
return NS_OK;
}
//*****************************************************************************
// nsDocShellLoadInfo: Helpers