summaryrefslogtreecommitdiffstats
path: root/media/base/decrypt_config.cc
blob: 9ae5f195e5d4cfab2be9a45108b23d329d2732e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "media/base/decrypt_config.h"

#include "base/logging.h"

namespace media {

DecryptConfig::DecryptConfig(const uint8* key_id, int key_id_size)
    : key_id_size_(key_id_size) {
  CHECK_GT(key_id_size, 0);
  key_id_.reset(new uint8[key_id_size]);
  memcpy(key_id_.get(), key_id, key_id_size);
}

DecryptConfig::~DecryptConfig() {}

}  // namespace media