RsdparsaSdpParser.h (880B)
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set ts=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 file, 5 * You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 #ifndef _RUSTSDPPARSER_H_ 8 #define _RUSTSDPPARSER_H_ 9 10 #include <string> 11 12 #include "mozilla/UniquePtr.h" 13 #include "sdp/SdpParser.h" 14 15 namespace mozilla { 16 17 class RsdparsaSdpParser final : public SdpParser { 18 static const std::string& ParserName(); 19 20 public: 21 RsdparsaSdpParser() = default; 22 virtual ~RsdparsaSdpParser() = default; 23 24 const std::string& Name() const override { return ParserName(); } 25 26 UniquePtr<SdpParser::Results> Parse(const std::string& text) override; 27 28 static bool IsNamed(const std::string& aName); 29 }; 30 31 } // namespace mozilla 32 33 #endif