OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_BASE_STREAM_PARSER_H_ | 5 #ifndef MEDIA_BASE_STREAM_PARSER_H_ |
6 #define MEDIA_BASE_STREAM_PARSER_H_ | 6 #define MEDIA_BASE_STREAM_PARSER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/time.h" | 14 #include "base/time/time.h" |
15 #include "media/base/media_export.h" | 15 #include "media/base/media_export.h" |
16 #include "media/base/media_log.h" | 16 #include "media/base/media_log.h" |
17 #include "media/base/text_track.h" | 17 #include "media/base/text_track.h" |
18 | 18 |
19 namespace media { | 19 namespace media { |
20 | 20 |
21 class AudioDecoderConfig; | 21 class AudioDecoderConfig; |
22 class StreamParserBuffer; | 22 class StreamParserBuffer; |
23 class VideoDecoderConfig; | 23 class VideoDecoderConfig; |
24 | 24 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // Returns true if the parse succeeds. | 104 // Returns true if the parse succeeds. |
105 virtual bool Parse(const uint8* buf, int size) = 0; | 105 virtual bool Parse(const uint8* buf, int size) = 0; |
106 | 106 |
107 private: | 107 private: |
108 DISALLOW_COPY_AND_ASSIGN(StreamParser); | 108 DISALLOW_COPY_AND_ASSIGN(StreamParser); |
109 }; | 109 }; |
110 | 110 |
111 } // namespace media | 111 } // namespace media |
112 | 112 |
113 #endif // MEDIA_BASE_STREAM_PARSER_H_ | 113 #endif // MEDIA_BASE_STREAM_PARSER_H_ |
OLD | NEW |