mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1104959
- Make nsStreamLoader retargetable. r=mcmanus
This commit is contained in:
parent
6092e12636
commit
8abbbd7e2e
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user