1 /* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- */
2 /* vim: set sw=4 ts=8 et tw=80 ft=cpp : */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 include "mozilla/dom/PermissionMessageUtils.h";
8 include "mozilla/ipc/TransportSecurityInfoUtils.h";
9 include "mozilla/ipc/URIUtils.h";
11 include NeckoChannelParams;
14 using mozilla::dom::WindowContextInitializer from "mozilla/dom/WindowContext.h";
15 [RefCounted] using class nsITransportSecurityInfo from "nsITransportSecurityInfo.h";
20 struct WindowGlobalInit
22 // Fields which are synchronized to other processes are found here.
23 WindowContextInitializer context;
25 // Private fields only shared with the parent process.
26 nullable nsIPrincipal principal;
27 nullable nsIPrincipal storagePrincipal;
28 nullable nsIURI documentURI;
30 bool isInitialDocument;
31 bool blockAllMixedContent;
32 bool upgradeInsecureRequests;
33 uint32_t sandboxFlags;
34 CookieJarSettingsArgs cookieJarSettings;
35 uint32_t httpsOnlyStatus;
36 nullable nsITransportSecurityInfo securityInfo;
40 } // namespace mozilla