/* -*- 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/. */
// charset attribute for classic script. // module always use UTF-8.
nsString mHintCharset;
// TODO: Reflect URL classifier data source. // mozilla::dom::ContentType // maybe implicit // top-level document's host // maybe part of principal? // what if it's inside frame in different host?
constbool mIsLinkRelPreload;
};
class ScriptLoadData final
: public SupportsWeakPtr, public nsISupports, public SharedSubResourceCacheLoadingValueBase<ScriptLoadData> { protected: virtual ~ScriptLoadData() {}
struct SharedScriptCacheTraits { using Loader = ScriptLoader; using Key = ScriptHashKey; using Value = JS::loader::LoadedScript; using LoadingValue = ScriptLoadData;
class SharedScriptCache final
: public SharedSubResourceCache<SharedScriptCacheTraits, SharedScriptCache>, public nsIMemoryReporter, public nsIObserver { public: using Base =
SharedSubResourceCache<SharedScriptCacheTraits, SharedScriptCache>;
// This has to be static because it's also called for loaders that don't have // a sheet cache (loaders that are not owned by a document). staticvoid LoadCompleted(SharedScriptCache*, ScriptLoadData&); using Base::LoadCompleted; staticvoid Clear(const Maybe<nsCOMPtr<nsIPrincipal>>& aPrincipal = Nothing(), const Maybe<nsCString>& aSchemelessSite = Nothing(), const Maybe<OriginAttributesPattern>& aPattern = Nothing());
protected:
~SharedScriptCache();
};
} // namespace dom
} // namespace mozilla
#endif// mozilla_dom_SharedScriptCache_h
¤ Dauer der Verarbeitung: 0.17 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.