Roll src/third_party/WebKit 6b63e20:35e1984 (svn 201060:201061)
[chromium-blink-merge.git] / chromecast / media / base / decrypt_context_impl_clearkey.cc
blob5ad3e11d50b8e2e8875ddc8e56616281bfe98733
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 #include "chromecast/media/base/decrypt_context_impl_clearkey.h"
7 #include "base/logging.h"
8 #include "crypto/symmetric_key.h"
10 namespace chromecast {
11 namespace media {
13 DecryptContextImplClearKey::DecryptContextImplClearKey(
14 crypto::SymmetricKey* key)
15 : DecryptContextImpl(KEY_SYSTEM_CLEAR_KEY), key_(key) {
16 CHECK(key);
19 DecryptContextImplClearKey::~DecryptContextImplClearKey() {}
21 crypto::SymmetricKey* DecryptContextImplClearKey::GetKey() const {
22 return key_;
25 } // namespace media
26 } // namespace chromecast