Finished implementing nsDocShellLoadInfo and hooked up to the build.

This commit is contained in:
tbogard@aol.net
2000-03-30 12:38:18 +00:00
parent 7becd23aab
commit 9c1ec0f9ac
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