2012-05-31 17:54:23 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim:set ts=2 sw=2 sts=2 et cindent: */
|
|
|
|
/* 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 http://mozilla.org/MPL/2.0/. */
|
2014-07-16 18:32:56 -07:00
|
|
|
#if !defined(AndroidMediaDecoder_h_)
|
|
|
|
#define AndroidMediaDecoder_h_
|
2012-05-31 17:54:23 -07:00
|
|
|
|
2012-11-14 11:46:40 -08:00
|
|
|
#include "MediaDecoder.h"
|
2014-07-16 18:32:56 -07:00
|
|
|
#include "AndroidMediaDecoder.h"
|
2012-05-31 17:54:23 -07:00
|
|
|
|
2012-11-14 11:45:33 -08:00
|
|
|
namespace mozilla {
|
|
|
|
|
2014-07-16 18:32:56 -07:00
|
|
|
class AndroidMediaDecoder : public MediaDecoder
|
2012-05-31 17:54:23 -07:00
|
|
|
{
|
|
|
|
nsCString mType;
|
|
|
|
public:
|
2014-07-16 18:32:56 -07:00
|
|
|
AndroidMediaDecoder(const nsACString& aType);
|
2012-05-31 17:54:23 -07:00
|
|
|
|
|
|
|
const nsresult GetContentType(nsACString& aType) const {
|
|
|
|
aType = mType;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
2014-07-16 18:32:56 -07:00
|
|
|
virtual MediaDecoder* Clone() { return new AndroidMediaDecoder(mType); }
|
2012-11-14 11:46:40 -08:00
|
|
|
virtual MediaDecoderStateMachine* CreateStateMachine();
|
2012-05-31 17:54:23 -07:00
|
|
|
};
|
|
|
|
|
2012-11-14 11:45:33 -08:00
|
|
|
} // namespace mozilla
|
|
|
|
|
2012-05-31 17:54:23 -07:00
|
|
|
#endif
|