2020-05-27 03:27:30 +03:00
|
|
|
/* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- */
|
|
|
|
/* vim: set sw=4 ts=8 et tw=80 ft=cpp : */
|
|
|
|
/* 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/. */
|
|
|
|
|
2020-11-23 19:05:33 +03:00
|
|
|
include "mozilla/dom/PermissionMessageUtils.h";
|
2020-05-27 03:28:59 +03:00
|
|
|
include "mozilla/ipc/TransportSecurityInfoUtils.h";
|
2020-11-23 19:06:09 +03:00
|
|
|
include "mozilla/ipc/URIUtils.h";
|
2020-05-27 03:28:59 +03:00
|
|
|
|
2020-05-27 03:27:30 +03:00
|
|
|
include NeckoChannelParams;
|
|
|
|
include DOMTypes;
|
|
|
|
|
|
|
|
using mozilla::dom::WindowContextInitializer from "mozilla/dom/WindowContext.h";
|
2021-02-09 19:50:21 +03:00
|
|
|
[RefCounted] using class nsITransportSecurityInfo from "nsITransportSecurityInfo.h";
|
2020-05-27 03:27:30 +03:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2020-07-22 20:24:33 +03:00
|
|
|
struct WindowGlobalInit
|
2020-05-27 03:27:30 +03:00
|
|
|
{
|
|
|
|
// Fields which are synchronized to other processes are found here.
|
|
|
|
WindowContextInitializer context;
|
|
|
|
|
|
|
|
// Private fields only shared with the parent process.
|
|
|
|
nsIPrincipal principal;
|
2021-05-26 10:14:03 +03:00
|
|
|
nsIPrincipal storagePrincipal;
|
2020-05-27 03:27:30 +03:00
|
|
|
nsIURI documentURI;
|
|
|
|
|
2021-07-14 18:51:20 +03:00
|
|
|
bool isInitialDocument;
|
2020-05-27 03:27:30 +03:00
|
|
|
bool blockAllMixedContent;
|
|
|
|
bool upgradeInsecureRequests;
|
|
|
|
uint32_t sandboxFlags;
|
|
|
|
CookieJarSettingsArgs cookieJarSettings;
|
|
|
|
uint32_t httpsOnlyStatus;
|
2020-05-27 03:28:59 +03:00
|
|
|
nsITransportSecurityInfo securityInfo;
|
2020-05-27 03:27:30 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|