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

@@ -43,6 +43,7 @@ XPIDLSRCS = \
CPPSRCS = \
nsDocShell.cpp \
nsDocShellLoadInfo.cpp \
nsDSURIContentListener.cpp \
nsDSWebProgressListener.cpp \
$(NULL)

View File

@@ -41,6 +41,7 @@ LIBRARY_NAME=basedocshell_s
CPP_OBJS= \
.\$(OBJDIR)\nsDocShell.obj \
.\$(OBJDIR)\nsDocShellLoadInfo.obj \
.\$(OBJDIR)\nsDSURIContentListener.obj \
.\$(OBJDIR)\nsDSWebProgressListener.obj \
$(NULL)

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

View File

@@ -45,7 +45,7 @@ protected:
protected:
nsCOMPtr<nsIURI> mReferrer;
PRBool mReplaceHistorySlot;
PRBool mReplaceSessionHistorySlot;
};
#endif /* nsDocShellLoadInfo_h__ */

View File

@@ -42,5 +42,5 @@ interface nsIDocShellLoadInfo : nsISupports
If set to true, this will replace the current history entry without
adding it to session history.
*/
attribute boolean replaceHistorySlot;
attribute boolean replaceSessionHistorySlot;
};