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

Side by Side Diff: webkit/media/filter_helpers.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: Updated encrypted WebM test data. Created 8 years, 6 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 WEBKIT_MEDIA_FILTER_HELPERS_H_ 5 #ifndef WEBKIT_MEDIA_FILTER_HELPERS_H_
6 #define WEBKIT_MEDIA_FILTER_HELPERS_H_ 6 #define WEBKIT_MEDIA_FILTER_HELPERS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 10
11 namespace media { 11 namespace media {
12 class AesDecryptor; 12 class Decryptor;
13 class ChunkDemuxerClient; 13 class ChunkDemuxerClient;
14 class DataSource; 14 class DataSource;
15 class FFmpegVideoDecoder; 15 class FFmpegVideoDecoder;
16 class FilterCollection; 16 class FilterCollection;
17 class MessageLoopFactory; 17 class MessageLoopFactory;
18 } 18 }
19 19
20 namespace WebKit { 20 namespace WebKit {
21 class WebURL; 21 class WebURL;
22 } 22 }
(...skipping 14 matching lines...) Expand all
37 // Builds the required filters for handling media source URLs, adds them to 37 // Builds the required filters for handling media source URLs, adds them to
38 // |filter_collection| and fills |video_decoder| returning true if successful. 38 // |filter_collection| and fills |video_decoder| returning true if successful.
39 // 39 //
40 // |filter_collection| is not modified if this method returns false. 40 // |filter_collection| is not modified if this method returns false.
41 bool BuildMediaSourceCollection( 41 bool BuildMediaSourceCollection(
42 const WebKit::WebURL& url, 42 const WebKit::WebURL& url,
43 const WebKit::WebURL& media_source_url, 43 const WebKit::WebURL& media_source_url,
44 media::ChunkDemuxerClient* client, 44 media::ChunkDemuxerClient* client,
45 media::MessageLoopFactory* message_loop_factory, 45 media::MessageLoopFactory* message_loop_factory,
46 media::FilterCollection* filter_collection, 46 media::FilterCollection* filter_collection,
47 media::AesDecryptor* decryptor, 47 media::Decryptor* decryptor,
xhwang 2012/06/14 19:42:27 We can keep the use of AesDecryptor (HmacAesDecryp
48 scoped_refptr<media::FFmpegVideoDecoder>* video_decoder); 48 scoped_refptr<media::FFmpegVideoDecoder>* video_decoder);
49 49
50 // Builds the required filters for handling regular URLs and adds them to 50 // Builds the required filters for handling regular URLs and adds them to
51 // |filter_collection| and fills |video_decoder| returning true if successful. 51 // |filter_collection| and fills |video_decoder| returning true if successful.
52 void BuildDefaultCollection( 52 void BuildDefaultCollection(
53 const scoped_refptr<media::DataSource>& data_source, 53 const scoped_refptr<media::DataSource>& data_source,
54 media::MessageLoopFactory* message_loop_factory, 54 media::MessageLoopFactory* message_loop_factory,
55 media::FilterCollection* filter_collection, 55 media::FilterCollection* filter_collection,
56 media::AesDecryptor* decryptor, 56 media::Decryptor* decryptor,
57 scoped_refptr<media::FFmpegVideoDecoder>* video_decoder); 57 scoped_refptr<media::FFmpegVideoDecoder>* video_decoder);
58 58
59 } // webkit_media 59 } // webkit_media
60 60
61 #endif // WEBKIT_MEDIA_FILTER_HELPERS_H_ 61 #endif // WEBKIT_MEDIA_FILTER_HELPERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698