Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(806)

Side by Side Diff: media/webm/webm_info_parser.h

Issue 10696182: Add config change handling to SourceBufferStream & ChunkDemuxer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added copyright headers to manifest files Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/test/data/bear-640x360-manifest.js ('k') | media/webm/webm_stream_parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « media/test/data/bear-640x360-manifest.js ('k') | media/webm/webm_stream_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698