/* -*- 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/. */
class nsIChannel; class nsIContentSecurityPolicy; class nsICookieJarSettings; class nsILoadGroup; class nsIPrincipal; class nsIReferrerInfo; class nsIRunnable; class nsIScriptContext; class nsIBrowserChild; class nsIURI; class nsPIDOMWindowInner;
namespace mozilla {
namespace ipc { class PrincipalInfo; class CSPInfo;
} // namespace ipc
namespace dom {
class WorkerPrivate;
struct WorkerLoadInfoData { // All of these should be released in // WorkerPrivateParent::ForgetMainThreadObjects.
nsCOMPtr<nsIURI> mBaseURI;
nsCOMPtr<nsIURI> mResolvedScriptURI;
// This is the principal of the global (parent worker or a window) loading // the worker. It can be null if we are executing a ServiceWorker, otherwise, // except for data: URL, it must subsumes the worker principal. // If we load a data: URL, mPrincipal will be a null principal.
nsCOMPtr<nsIPrincipal> mLoadingPrincipal;
nsCOMPtr<nsIPrincipal> mPrincipal;
nsCOMPtr<nsIPrincipal> mPartitionedPrincipal;
// Taken from the parent context.
nsCOMPtr<nsICookieJarSettings> mCookieJarSettings;
// The CookieJarSettingsArgs of mCookieJarSettings. // This is specific for accessing on worker thread.
net::CookieJarSettingsArgs mCookieJarSettingsArgs;
nsCOMPtr<nsIScriptContext> mScriptContext;
nsCOMPtr<nsPIDOMWindowInner> mWindow;
nsCOMPtr<nsIContentSecurityPolicy> mCSP; // 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 thread. We move the CSPInfo into the Client within // ScriptLoader::PreRun().
UniquePtr<mozilla::ipc::CSPInfo> mCSPInfo;
// Array of weak references to nsIBrowserChild. We do not want to keep // BrowserChild actors alive for long after their ActorDestroy() methods are // called.
nsTArray<nsWeakPtr> mBrowserChildList;
};
// Only set if we have a custom overriden load group
RefPtr<InterfaceRequestor> mInterfaceRequestor;
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.