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

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

Issue 10535029: Add support for encrypted WebM files as defined in the RFC. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressing comments in the CL. Created 8 years, 5 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
OLDNEW
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_WEBM_WEBM_CLUSTER_PARSER_H_ 5 #ifndef MEDIA_WEBM_WEBM_CLUSTER_PARSER_H_
6 #define MEDIA_WEBM_WEBM_CLUSTER_PARSER_H_ 6 #define MEDIA_WEBM_WEBM_CLUSTER_PARSER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "media/base/media_export.h" 12 #include "media/base/media_export.h"
13 #include "media/base/stream_parser_buffer.h" 13 #include "media/base/stream_parser_buffer.h"
14 #include "media/webm/webm_parser.h" 14 #include "media/webm/webm_parser.h"
15 15
16 namespace media { 16 namespace media {
17 17
18 class MEDIA_EXPORT WebMClusterParser : public WebMParserClient { 18 class MEDIA_EXPORT WebMClusterParser : public WebMParserClient {
19 public: 19 public:
20 typedef std::deque<scoped_refptr<StreamParserBuffer> > BufferQueue; 20 typedef std::deque<scoped_refptr<StreamParserBuffer> > BufferQueue;
21 static const int kDecryptionKeySize = 16;
ddorwin 2012/07/13 00:48:00 does not match the more permissive RFC, right?
fgalligan1 2012/07/13 21:40:41 This matches the RFC. I.e. This must be 16 because
21 22
22 WebMClusterParser(int64 timecode_scale, 23 WebMClusterParser(int64 timecode_scale,
23 int audio_track_num, 24 int audio_track_num,
24 int video_track_num, 25 int video_track_num,
25 const uint8* video_encryption_key_id, 26 const uint8* video_encryption_key_id,
26 int video_encryption_key_id_size); 27 int video_encryption_key_id_size);
27 virtual ~WebMClusterParser(); 28 virtual ~WebMClusterParser();
28 29
29 // Resets the parser state so it can accept a new cluster. 30 // Resets the parser state so it can accept a new cluster.
30 void Reset(); 31 void Reset();
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 100
100 Track audio_; 101 Track audio_;
101 Track video_; 102 Track video_;
102 103
103 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMClusterParser); 104 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMClusterParser);
104 }; 105 };
105 106
106 } // namespace media 107 } // namespace media
107 108
108 #endif // MEDIA_WEBM_WEBM_CLUSTER_PARSER_H_ 109 #endif // MEDIA_WEBM_WEBM_CLUSTER_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698