Bug 1867190 - Initialise the PHC allocate delay later r=glandium
[gecko.git] / dom / workers / WorkerChannelInfo.h
blob66b28bf68585326c4ed64a7b5d11e3e07b7a54ac
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 mozilla_dom_WorkerChannel_h
8 #define mozilla_dom_WorkerChannel_h
10 #include "nsIWorkerChannelInfo.h"
11 #include "nsILoadInfo.h"
12 #include "nsIChannel.h"
13 #include "nsTArray.h"
14 #include "nsIURI.h"
15 #include "mozilla/dom/ClientInfo.h"
16 #include "mozilla/dom/ServiceWorkerDescriptor.h"
17 #include "mozilla/OriginAttributes.h"
19 namespace mozilla::dom {
21 class WorkerChannelLoadInfo final : public nsIWorkerChannelLoadInfo {
22 public:
23 NS_DECL_THREADSAFE_ISUPPORTS;
24 NS_DECL_NSIWORKERCHANNELLOADINFO;
26 private:
27 ~WorkerChannelLoadInfo() = default;
29 uint64_t mWorkerAssociatedBrowsingContextID;
32 class WorkerChannelInfo final : public nsIWorkerChannelInfo {
33 public:
34 NS_DECL_THREADSAFE_ISUPPORTS;
35 NS_DECL_NSIWORKERCHANNELINFO;
37 WorkerChannelInfo(uint64_t aChannelID,
38 uint64_t aWorkerAssociatedBrowsingContextID);
39 WorkerChannelInfo() = delete;
41 private:
42 ~WorkerChannelInfo() = default;
44 nsCOMPtr<nsIWorkerChannelLoadInfo> mLoadInfo;
45 uint64_t mChannelID;
48 } // end of namespace mozilla::dom
50 #endif