mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1685832 - Remove some includes from PreloadService.h. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D101249
This commit is contained in:
parent
1dcf18b440
commit
3339819a8e
@ -36,6 +36,7 @@
|
||||
#include "mozilla/LoadInfo.h"
|
||||
#include "mozilla/LoadContext.h"
|
||||
#include "mozilla/MemoryReporting.h"
|
||||
#include "mozilla/PreloaderBase.h"
|
||||
#include "mozilla/SpinEventLoopUntil.h"
|
||||
#include "mozilla/StaticPrefs_dom.h"
|
||||
#include "mozilla/StaticPrefs_network.h"
|
||||
|
@ -6,16 +6,21 @@
|
||||
#include "PreloadService.h"
|
||||
|
||||
#include "FetchPreloader.h"
|
||||
#include "PreloaderBase.h"
|
||||
#include "mozilla/AsyncEventDispatcher.h"
|
||||
#include "mozilla/dom/WindowGlobalChild.h"
|
||||
#include "mozilla/dom/HTMLLinkElement.h"
|
||||
#include "mozilla/dom/ScriptLoader.h"
|
||||
#include "mozilla/Encoding.h"
|
||||
#include "mozilla/FontPreloader.h"
|
||||
#include "mozilla/StaticPrefs_network.h"
|
||||
#include "nsNetUtil.h"
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
PreloadService::PreloadService(dom::Document* aDoc) : mDocument(aDoc) {}
|
||||
PreloadService::~PreloadService() = default;
|
||||
|
||||
bool PreloadService::RegisterPreload(const PreloadHashKey& aKey,
|
||||
PreloaderBase* aPreload) {
|
||||
if (PreloadExists(aKey)) {
|
||||
|
@ -9,10 +9,14 @@
|
||||
#include "nsIContentPolicy.h"
|
||||
#include "nsIURI.h"
|
||||
#include "nsRefPtrHashtable.h"
|
||||
#include "PreloaderBase.h"
|
||||
#include "mozilla/PreloadHashKey.h"
|
||||
|
||||
class nsINode;
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
class PreloaderBase;
|
||||
|
||||
namespace dom {
|
||||
|
||||
class HTMLLinkElement;
|
||||
@ -31,7 +35,8 @@ enum class SheetPreloadStatus : uint8_t;
|
||||
*/
|
||||
class PreloadService {
|
||||
public:
|
||||
explicit PreloadService(dom::Document* aDocument) : mDocument(aDocument) {}
|
||||
explicit PreloadService(dom::Document*);
|
||||
~PreloadService();
|
||||
|
||||
// Called by resource loaders to register a running resource load. This is
|
||||
// called for a speculative load when it's started the first time, being it
|
||||
|
Loading…
Reference in New Issue
Block a user