/src/mozilla-central/dom/clients/manager/ClientNavigateOpChild.h
Line | Count | Source (jump to first uncovered line) |
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/. */ |
6 | | #ifndef _mozilla_dom_ClientNavigateOpChild_h |
7 | | #define _mozilla_dom_ClientNavigateOpChild_h |
8 | | |
9 | | #include "mozilla/dom/PClientNavigateOpChild.h" |
10 | | #include "ClientOpPromise.h" |
11 | | |
12 | | namespace mozilla { |
13 | | namespace dom { |
14 | | |
15 | | class ClientNavigateOpChild final : public PClientNavigateOpChild |
16 | | { |
17 | | MozPromiseRequestHolder<ClientOpPromise> mPromiseRequestHolder; |
18 | | nsCOMPtr<nsISerialEventTarget> mSerialEventTarget; |
19 | | |
20 | | already_AddRefed<ClientOpPromise> |
21 | | DoNavigate(const ClientNavigateOpConstructorArgs& aArgs); |
22 | | |
23 | | // PClientNavigateOpChild interface |
24 | | void |
25 | | ActorDestroy(ActorDestroyReason aReason) override; |
26 | | |
27 | | public: |
28 | 0 | ClientNavigateOpChild() = default; |
29 | 0 | ~ClientNavigateOpChild() = default; |
30 | | |
31 | | void |
32 | | Init(const ClientNavigateOpConstructorArgs& aArgs); |
33 | | }; |
34 | | |
35 | | } // namespace dom |
36 | | } // namespace mozilla |
37 | | |
38 | | #endif // _mozilla_dom_ClientNavigateOpChild_h |