Roll src/third_party/WebKit 6b63e20:35e1984 (svn 201060:201061)
[chromium-blink-merge.git] / chromecast / media / base / decrypt_context_impl_clearkey.h
blobffd0473130d2ee05422ac0fcc454e745239a5733
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.
5 #ifndef CHROMECAST_MEDIA_BASE_DECRYPT_CONTEXT_IMPL_CLEARKEY_H_
6 #define CHROMECAST_MEDIA_BASE_DECRYPT_CONTEXT_IMPL_CLEARKEY_H_
8 #include "base/macros.h"
9 #include "chromecast/media/base/decrypt_context_impl.h"
11 namespace chromecast {
12 namespace media {
14 class DecryptContextImplClearKey : public DecryptContextImpl {
15 public:
16 // Note: DecryptContextClearKey does not take ownership of |key|.
17 explicit DecryptContextImplClearKey(crypto::SymmetricKey* key);
18 ~DecryptContextImplClearKey() override;
20 // DecryptContext implementation.
21 crypto::SymmetricKey* GetKey() const override;
23 private:
24 crypto::SymmetricKey* const key_;
26 DISALLOW_COPY_AND_ASSIGN(DecryptContextImplClearKey);
29 } // namespace media
30 } // namespace chromecast
32 #endif // CHROMECAST_MEDIA_BASE_DECRYPT_CONTEXT_IMPL_CLEARKEY_H_