/src/mozilla-central/dom/presentation/PresentationTransportBuilderConstructor.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 | | |
7 | | #ifndef mozilla_dom_PresentationTransportBuilderConstructor_h |
8 | | #define mozilla_dom_PresentationTransportBuilderConstructor_h |
9 | | |
10 | | #include "nsCOMPtr.h" |
11 | | #include "nsIPresentationSessionTransportBuilder.h" |
12 | | #include "nsISupportsImpl.h" |
13 | | |
14 | | namespace mozilla { |
15 | | namespace dom { |
16 | | |
17 | | class DummyPresentationTransportBuilderConstructor : |
18 | | public nsIPresentationTransportBuilderConstructor |
19 | | { |
20 | | public: |
21 | | NS_DECL_ISUPPORTS |
22 | | NS_DECL_NSIPRESENTATIONTRANSPORTBUILDERCONSTRUCTOR |
23 | | |
24 | 0 | DummyPresentationTransportBuilderConstructor() = default; |
25 | | |
26 | | protected: |
27 | 0 | virtual ~DummyPresentationTransportBuilderConstructor() = default; |
28 | | }; |
29 | | |
30 | | class PresentationTransportBuilderConstructor final : |
31 | | public DummyPresentationTransportBuilderConstructor |
32 | | { |
33 | | public: |
34 | | NS_INLINE_DECL_REFCOUNTING_INHERITED(PresentationTransportBuilderConstructor, |
35 | | DummyPresentationTransportBuilderConstructor) |
36 | | NS_DECL_NSIPRESENTATIONTRANSPORTBUILDERCONSTRUCTOR |
37 | | |
38 | | static already_AddRefed<nsIPresentationTransportBuilderConstructor> |
39 | | Create(); |
40 | | |
41 | | private: |
42 | 0 | PresentationTransportBuilderConstructor() = default; |
43 | | virtual ~PresentationTransportBuilderConstructor() = default; |
44 | | }; |
45 | | |
46 | | } // namespace dom |
47 | | } // namespace mozilla |
48 | | |
49 | | #endif // mozilla_dom_PresentationTransportBuilderConstructor_h |