Line data Source code
1 : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 : /* vim:set ts=2 sw=2 sts=2 et cindent: */
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_DCPresentationChannelDescription_h
8 : #define mozilla_dom_DCPresentationChannelDescription_h
9 :
10 : #include "nsIPresentationControlChannel.h"
11 : #include "nsString.h"
12 :
13 : namespace mozilla {
14 : namespace dom {
15 :
16 : // PresentationChannelDescription for Data Channel
17 : class DCPresentationChannelDescription final : public nsIPresentationChannelDescription
18 : {
19 : public:
20 : NS_DECL_ISUPPORTS
21 : NS_DECL_NSIPRESENTATIONCHANNELDESCRIPTION
22 :
23 0 : explicit DCPresentationChannelDescription(const nsAString& aSDP)
24 0 : : mSDP(aSDP)
25 : {
26 0 : }
27 :
28 : private:
29 0 : virtual ~DCPresentationChannelDescription() = default;
30 :
31 : nsString mSDP;
32 : };
33 :
34 : } // namespace dom
35 : } // namespace mozilla
36 :
37 : #endif // mozilla_dom_DCPresentationChannelDescription_h
|