| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WEBM_WEBM_INFO_PARSER_H_ | 5 #ifndef MEDIA_WEBM_WEBM_INFO_PARSER_H_ |
| 6 #define MEDIA_WEBM_WEBM_INFO_PARSER_H_ | 6 #define MEDIA_WEBM_WEBM_INFO_PARSER_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "media/base/media_export.h" |
| 9 #include "media/webm/webm_parser.h" | 10 #include "media/webm/webm_parser.h" |
| 10 | 11 |
| 11 namespace media { | 12 namespace media { |
| 12 | 13 |
| 13 // Parser for WebM Info element. | 14 // Parser for WebM Info element. |
| 14 class WebMInfoParser : public WebMParserClient { | 15 class MEDIA_EXPORT WebMInfoParser : public WebMParserClient { |
| 15 public: | 16 public: |
| 16 WebMInfoParser(); | 17 WebMInfoParser(); |
| 17 virtual ~WebMInfoParser(); | 18 virtual ~WebMInfoParser(); |
| 18 | 19 |
| 19 // Parses a WebM Info element in |buf|. | 20 // Parses a WebM Info element in |buf|. |
| 20 // | 21 // |
| 21 // Returns -1 if the parse fails. | 22 // Returns -1 if the parse fails. |
| 22 // Returns 0 if more data is needed. | 23 // Returns 0 if more data is needed. |
| 23 // Returns the number of bytes parsed on success. | 24 // Returns the number of bytes parsed on success. |
| 24 int Parse(const uint8* buf, int size); | 25 int Parse(const uint8* buf, int size); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 37 | 38 |
| 38 int64 timecode_scale_; | 39 int64 timecode_scale_; |
| 39 double duration_; | 40 double duration_; |
| 40 | 41 |
| 41 DISALLOW_COPY_AND_ASSIGN(WebMInfoParser); | 42 DISALLOW_COPY_AND_ASSIGN(WebMInfoParser); |
| 42 }; | 43 }; |
| 43 | 44 |
| 44 } // namespace media | 45 } // namespace media |
| 45 | 46 |
| 46 #endif // MEDIA_WEBM_WEBM_INFO_PARSER_H_ | 47 #endif // MEDIA_WEBM_WEBM_INFO_PARSER_H_ |
| OLD | NEW |