Blink roll 25b6bd3a7a131ffe68d809546ad1a20707915cdc:3a503f41ae42e5b79cfcd2ff10e65afde...
[chromium-blink-merge.git] / chromecast / media / base / decrypt_context_clearkey.cc
blob248cbb459c68b060a41d82e6535c67efe515c0f8
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_clearkey.h"
7 #include "base/logging.h"
8 #include "crypto/symmetric_key.h"
10 namespace chromecast {
11 namespace media {
13 DecryptContextClearKey::DecryptContextClearKey(crypto::SymmetricKey* key)
14 : DecryptContext(KEY_SYSTEM_CLEAR_KEY),
15 key_(key) {
16 CHECK(key);
19 DecryptContextClearKey::~DecryptContextClearKey() {
22 crypto::SymmetricKey* DecryptContextClearKey::GetKey() const {
23 return key_;
26 } // namespace media
27 } // namespace chromecast