Bug 1900094 - Add telemetry for impressions missing due to domain-to-categories map...
[gecko.git] / toolkit / components / windowwatcher / nsOpenWindowInfo.h
blob58369f27a6df32f13577a111958d5fb250aca570
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
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 #ifndef nsOpenWindowInfo_h
8 #define nsOpenWindowInfo_h
10 #include "nsIOpenWindowInfo.h"
11 #include "nsISupportsImpl.h"
12 #include "mozilla/OriginAttributes.h"
13 #include "mozilla/RefPtr.h"
14 #include "mozilla/dom/ClientOpenWindowUtils.h"
16 class nsOpenWindowInfo : public nsIOpenWindowInfo {
17 public:
18 NS_DECL_ISUPPORTS
19 NS_DECL_NSIOPENWINDOWINFO
21 bool mForceNoOpener = false;
22 bool mIsRemote = false;
23 bool mIsForPrinting = false;
24 bool mIsForWindowDotPrint = false;
25 bool mIsTopLevelCreatedByWebContent = false;
26 bool mHasValidUserGestureActivation = false;
27 bool mTextDirectiveUserActivation = false;
28 RefPtr<mozilla::dom::BrowserParent> mNextRemoteBrowser;
29 mozilla::OriginAttributes mOriginAttributes;
30 RefPtr<mozilla::dom::BrowsingContext> mParent;
31 RefPtr<nsIBrowsingContextReadyCallback> mBrowsingContextReadyCallback;
33 private:
34 virtual ~nsOpenWindowInfo() = default;
37 class nsBrowsingContextReadyCallback : public nsIBrowsingContextReadyCallback {
38 public:
39 NS_DECL_ISUPPORTS
40 NS_DECL_NSIBROWSINGCONTEXTREADYCALLBACK
42 explicit nsBrowsingContextReadyCallback(
43 RefPtr<mozilla::dom::BrowsingContextCallbackReceivedPromise::Private>
44 aPromise);
46 private:
47 virtual ~nsBrowsingContextReadyCallback();
49 RefPtr<mozilla::dom::BrowsingContextCallbackReceivedPromise::Private>
50 mPromise;
53 #endif // nsOpenWindowInfo_h