Bug 1104959 - Make nsStreamLoader retargetable. r=mcmanus

This commit is contained in:
Nikhil Marathe 2014-11-24 10:28:54 -08:00
parent 6092e12636
commit 8abbbd7e2e
2 changed files with 12 additions and 2 deletions

View File

@ -43,7 +43,8 @@ nsStreamLoader::Create(nsISupports *aOuter, REFNSIID aIID, void **aResult)
}
NS_IMPL_ISUPPORTS(nsStreamLoader, nsIStreamLoader,
nsIRequestObserver, nsIStreamListener)
nsIRequestObserver, nsIStreamListener,
nsIThreadRetargetableStreamListener)
NS_IMETHODIMP
nsStreamLoader::GetNumBytesRead(uint32_t* aNumBytes)
@ -144,3 +145,9 @@ nsStreamLoader::ReleaseData()
{
mData.clearAndFree();
}
NS_IMETHODIMP
nsStreamLoader::CheckListenerChain()
{
return NS_OK;
}

View File

@ -6,6 +6,7 @@
#ifndef nsStreamLoader_h__
#define nsStreamLoader_h__
#include "nsIThreadRetargetableStreamListener.h"
#include "nsIStreamLoader.h"
#include "nsCOMPtr.h"
#include "mozilla/Attributes.h"
@ -14,12 +15,14 @@
class nsIRequest;
class nsStreamLoader MOZ_FINAL : public nsIStreamLoader
, public nsIThreadRetargetableStreamListener
{
public:
NS_DECL_ISUPPORTS
NS_DECL_THREADSAFE_ISUPPORTS
NS_DECL_NSISTREAMLOADER
NS_DECL_NSIREQUESTOBSERVER
NS_DECL_NSISTREAMLISTENER
NS_DECL_NSITHREADRETARGETABLESTREAMLISTENER
nsStreamLoader();