/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* loading of CSS style sheets using the network APIs */ #ifndef mozilla_css_Loader_h #define mozilla_css_Loader_h #include #include #include "mozilla/Attributes.h" #include "mozilla/CORSMode.h" #include "mozilla/dom/LinkStyle.h" #include "mozilla/MemoryReporting.h" #include "mozilla/UniquePtr.h" #include "nsCompatibility.h" #include "nsCycleCollectionParticipant.h" #include "nsStringFwd.h" #include "nsTArray.h" #include "nsTObserverArray.h" #include "nsURIHashKey.h" #include "nsRefPtrHashtable.h" class nsICSSLoaderObserver; class nsIConsoleReportCollector; class nsIContent; class nsIPrincipal; namespace mozilla { class PreloadHashKey; class SharedStyleSheetCache; class SheetLoadDataHashKey; class StyleSheet; namespace dom { class DocGroup; class Element; } // namespace dom // The load data for a or @import style-sheet. // // This must contain all the state that affects CSS parsing. class SheetLoadDataHashKey : public PLDHashEntryHdr { public: enum class IsPreload : uint8_t { No, // This is a speculative load initiated by a tag // scanned by the parser, or @import rules found in a