OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROMECAST_MEDIA_CMA_PIPELINE_DECRYPT_UTIL_H_ |
| 6 #define CHROMECAST_MEDIA_CMA_PIPELINE_DECRYPT_UTIL_H_ |
| 7 |
| 8 #include "base/memory/ref_counted.h" |
| 9 |
| 10 namespace crypto { |
| 11 class SymmetricKey; |
| 12 } |
| 13 |
| 14 namespace chromecast { |
| 15 namespace media { |
| 16 |
| 17 class DecoderBufferBase; |
| 18 |
| 19 // Create a new buffer which corresponds to the clear version of |buffer|. |
| 20 // Note: the memory area corresponding to the ES data of the new buffer |
| 21 // is the same as the ES data of |buffer| (for efficiency). |
| 22 // After the function is called, |buffer| is left in a inconsistent state |
| 23 // in the sense it has some decryption info but the ES data is now in clear. |
| 24 scoped_refptr<DecoderBufferBase> DecryptDecoderBuffer( |
| 25 const scoped_refptr<DecoderBufferBase>& buffer, |
| 26 crypto::SymmetricKey* key); |
| 27 |
| 28 } // namespace media |
| 29 } // namespace chromecast |
| 30 |
| 31 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_DECRYPT_UTIL_H_ |
OLD | NEW |