content/media/raw/RawDecoder.h

branch
TOR_BUG_9701
changeset 8
97036ab72558
equal deleted inserted replaced
-1:000000000000 0:c70e77d8403c
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 #if !defined(RawDecoder_h_)
6 #define RawDecoder_h_
7
8 #include "MediaDecoder.h"
9
10 namespace mozilla {
11
12 class RawDecoder : public MediaDecoder
13 {
14 public:
15 virtual MediaDecoder* Clone() {
16 if (!IsRawEnabled()) {
17 return nullptr;
18 }
19 return new RawDecoder();
20 }
21 virtual MediaDecoderStateMachine* CreateStateMachine();
22 };
23
24 } // namespace mozilla
25
26 #endif

mercurial