зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1678560 - Avoid including nsILoadGroup.h in header files. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D97739 Depends on D97737
This commit is contained in:
Родитель
d86902fcce
Коммит
2d2a1d60c9
|
@ -1171,6 +1171,13 @@ imgCacheValidator* imgRequestProxy::GetValidator() const {
|
|||
return owner->GetValidator();
|
||||
}
|
||||
|
||||
nsITimedChannel* imgRequestProxy::TimedChannel() {
|
||||
if (!GetOwner()) {
|
||||
return nullptr;
|
||||
}
|
||||
return GetOwner()->GetTimedChannel();
|
||||
}
|
||||
|
||||
////////////////// imgRequestProxyStatic methods
|
||||
|
||||
class StaticBehaviour : public ProxyBehaviour {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
#include "imgIRequest.h"
|
||||
|
||||
#include "nsILoadGroup.h"
|
||||
#include "nsIPrincipal.h"
|
||||
#include "nsISupportsPriority.h"
|
||||
#include "nsITimedChannel.h"
|
||||
#include "nsCOMPtr.h"
|
||||
|
@ -19,7 +19,6 @@
|
|||
#include "mozilla/UniquePtr.h"
|
||||
#include "mozilla/gfx/Rect.h"
|
||||
|
||||
#include "imgRequest.h"
|
||||
#include "IProgressObserver.h"
|
||||
|
||||
#define NS_IMGREQUESTPROXY_CID \
|
||||
|
@ -31,6 +30,7 @@
|
|||
|
||||
class imgCacheValidator;
|
||||
class imgINotificationObserver;
|
||||
class imgRequest;
|
||||
class imgStatusNotifyRunnable;
|
||||
class ProxyBehaviour;
|
||||
|
||||
|
@ -172,12 +172,7 @@ class imgRequestProxy : public mozilla::PreloaderBase,
|
|||
// (b) whether mOwner has instantiated its image yet
|
||||
already_AddRefed<ProgressTracker> GetProgressTracker() const;
|
||||
|
||||
nsITimedChannel* TimedChannel() {
|
||||
if (!GetOwner()) {
|
||||
return nullptr;
|
||||
}
|
||||
return GetOwner()->GetTimedChannel();
|
||||
}
|
||||
nsITimedChannel* TimedChannel();
|
||||
|
||||
already_AddRefed<Image> GetImage() const;
|
||||
bool HasImage() const;
|
||||
|
|
Загрузка…
Ссылка в новой задаче