Line data Source code
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_DECL_ISUPPORTS_INHERITED
35 : NS_DECL_NSIPRESENTATIONTRANSPORTBUILDERCONSTRUCTOR
36 :
37 : static already_AddRefed<nsIPresentationTransportBuilderConstructor>
38 : Create();
39 :
40 : private:
41 0 : PresentationTransportBuilderConstructor() = default;
42 0 : virtual ~PresentationTransportBuilderConstructor() = default;
43 : };
44 :
45 : } // namespace dom
46 : } // namespace mozilla
47 :
48 : #endif // mozilla_dom_PresentationTransportBuilderConstructor_h
|