// A minimal version of nsCSPContext that can run on worker and worklet threads. class OffThreadCSPContext final {
public: explicit OffThreadCSPContext(mozilla::ipc::CSPInfo&& aInfo)
: mCSPInfo(aInfo) {}
// Thread boundaries require us to not only store a CSP object, but also a // serialized version of the CSP. Reason being: Serializing a CSP to a CSPInfo // needs to happen on the main thread, but storing the CSPInfo needs to happen // on the worker/worklet thread.
mozilla::ipc::CSPInfo mCSPInfo;
// This is created lazily by parsing the policies in CSPInfo on the // worker/worklet thread.
nsTArray<UniquePtr<const nsCSPPolicy>> mPolicies;
};
} // namespace mozilla::dom
#endif// mozilla_dom_OffThreadCSPContext_h_
Messung V0.5 in Prozent
¤ 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.0.6Bemerkung:
¤
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 und die Messung sind noch experimentell.