Added a CanHandleContentType to identify if a given instantiated docShell can handle the requested document type.
git-svn-id: svn://10.0.0.236/trunk@51841 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -158,6 +158,17 @@ NS_IMETHODIMP nsDocShellBase::SetParent(nsIDocShell* parent)
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsDocShellBase::CanHandleContentType(const PRUnichar* contentType,
|
||||
PRBool* canHandle)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(canHandle);
|
||||
|
||||
NS_WARN_IF_FALSE(PR_FALSE, "Subclasses should override this method!!!!");
|
||||
|
||||
*canHandle = PR_FALSE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsDocShellBase::GetPrefs(nsIPref** prefs)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(prefs);
|
||||
|
||||
Reference in New Issue
Block a user