OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 CHROMECAST_MEDIA_BASE_DECRYPT_CONTEXT_CLEARKEY_H_ | 5 #ifndef CHROMECAST_MEDIA_BASE_DECRYPT_CONTEXT_IMPL_CLEARKEY_H_ |
6 #define CHROMECAST_MEDIA_BASE_DECRYPT_CONTEXT_CLEARKEY_H_ | 6 #define CHROMECAST_MEDIA_BASE_DECRYPT_CONTEXT_IMPL_CLEARKEY_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chromecast/media/base/decrypt_context.h" | 9 #include "chromecast/media/base/decrypt_context_impl.h" |
10 | 10 |
11 namespace chromecast { | 11 namespace chromecast { |
12 namespace media { | 12 namespace media { |
13 | 13 |
14 class DecryptContextClearKey : public DecryptContext { | 14 class DecryptContextImplClearKey : public DecryptContextImpl { |
15 public: | 15 public: |
16 // Note: DecryptContextClearKey does not take ownership of |key|. | 16 // Note: DecryptContextClearKey does not take ownership of |key|. |
17 explicit DecryptContextClearKey(crypto::SymmetricKey* key); | 17 explicit DecryptContextImplClearKey(crypto::SymmetricKey* key); |
| 18 ~DecryptContextImplClearKey() override; |
18 | 19 |
19 // DecryptContext implementation. | 20 // DecryptContext implementation. |
20 crypto::SymmetricKey* GetKey() const override; | 21 crypto::SymmetricKey* GetKey() const override; |
21 | 22 |
22 private: | 23 private: |
23 ~DecryptContextClearKey() override; | |
24 | |
25 crypto::SymmetricKey* const key_; | 24 crypto::SymmetricKey* const key_; |
26 | 25 |
27 DISALLOW_COPY_AND_ASSIGN(DecryptContextClearKey); | 26 DISALLOW_COPY_AND_ASSIGN(DecryptContextImplClearKey); |
28 }; | 27 }; |
29 | 28 |
30 } // namespace media | 29 } // namespace media |
31 } // namespace chromecast | 30 } // namespace chromecast |
32 | 31 |
33 #endif // CHROMECAST_MEDIA_BASE_DECRYPT_CONTEXT_CLEARKEY_H_ | 32 #endif // CHROMECAST_MEDIA_BASE_DECRYPT_CONTEXT_IMPL_CLEARKEY_H_ |
OLD | NEW |