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 WEBKIT_MEDIA_CRYPTO_PPAPI_CLEAR_KEY_CDM_H_ | 5 #ifndef WEBKIT_MEDIA_CRYPTO_PPAPI_CLEAR_KEY_CDM_H_ |
6 #define WEBKIT_MEDIA_CRYPTO_PPAPI_CLEAR_KEY_CDM_H_ | 6 #define WEBKIT_MEDIA_CRYPTO_PPAPI_CLEAR_KEY_CDM_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.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/synchronization/lock.h" | 14 #include "base/synchronization/lock.h" |
15 #include "media/base/decryptor_client.h" | 15 #include "media/base/decryptor_client.h" |
16 #include "media/crypto/aes_decryptor.h" | 16 #include "media/crypto/aes_decryptor.h" |
17 #include "webkit/media/crypto/ppapi/content_decryption_module.h" | 17 #include "webkit/media/crypto/ppapi/cdm/content_decryption_module.h" |
18 | 18 |
19 // Enable this to use the fake decoder for testing. | 19 // Enable this to use the fake decoder for testing. |
20 // TODO(tomfinegan): Move fake audio decoder into a separate class. | 20 // TODO(tomfinegan): Move fake audio decoder into a separate class. |
21 #if 0 | 21 #if 0 |
22 #define CLEAR_KEY_CDM_USE_FAKE_AUDIO_DECODER | 22 #define CLEAR_KEY_CDM_USE_FAKE_AUDIO_DECODER |
23 #endif | 23 #endif |
24 | 24 |
25 namespace media { | 25 namespace media { |
26 class DecoderBuffer; | 26 class DecoderBuffer; |
27 } | 27 } |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 #endif // CLEAR_KEY_CDM_USE_FFMPEG_DECODER | 169 #endif // CLEAR_KEY_CDM_USE_FFMPEG_DECODER |
170 | 170 |
171 scoped_ptr<CdmVideoDecoder> video_decoder_; | 171 scoped_ptr<CdmVideoDecoder> video_decoder_; |
172 | 172 |
173 DISALLOW_COPY_AND_ASSIGN(ClearKeyCdm); | 173 DISALLOW_COPY_AND_ASSIGN(ClearKeyCdm); |
174 }; | 174 }; |
175 | 175 |
176 } // namespace webkit_media | 176 } // namespace webkit_media |
177 | 177 |
178 #endif // WEBKIT_MEDIA_CRYPTO_PPAPI_CLEAR_KEY_CDM_H_ | 178 #endif // WEBKIT_MEDIA_CRYPTO_PPAPI_CLEAR_KEY_CDM_H_ |
OLD | NEW |