Bug 1685832 - Remove some includes from PreloadService.h. r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D101249
This commit is contained in:
Emilio Cobos Álvarez 2021-01-11 02:35:41 +00:00
parent 1dcf18b440
commit 3339819a8e
3 changed files with 13 additions and 2 deletions

View File

@ -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"

View File

@ -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)) {

View File

@ -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