/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththisfile,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
// 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 You canobtain one at http://mozilla.org/MPL/2.0/. */ // 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;
};
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.