author Andreas Pehrson <>
Fri, 10 Nov 2017 15:55:42 +0100
changeset 454191 87a5b07fa4c9c258e11b1c77058afe135b9a6533
parent 359961 5c82a43c23a87e75bf60bdbb8cce8d081734e6e4
child 485518 ce551bb46aa27833cdd9e69c8ce5e831f33c9ad7
permissions -rw-r--r--
Bug 1299515 - Plumb MediaStreamTrack enabled state to sources. r=jib MozReview-Commit-ID: Eg1g9JtLmOz

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at */

#ifndef nsContentTypeParser_h
#define nsContentTypeParser_h

#include "nsAString.h"

class nsIMIMEHeaderParam;

class nsContentTypeParser {
  explicit nsContentTypeParser(const nsAString& aString);

  nsresult GetParameter(const char* aParameterName, nsAString& aResult) const;
  nsresult GetType(nsAString& aResult) const;

  NS_ConvertUTF16toUTF8 mString;
  nsIMIMEHeaderParam*   mService;