[Extensions Toolbar] Make the ExtensionToolbarModel icon count more stable
[chromium-blink-merge.git] / media / base / decrypt_config.cc
bloba47806504a77f85e4b8387aa7d4e3b8eaadf7176
1 // Copyright (c) 2012 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 "media/base/decrypt_config.h"
7 #include "base/logging.h"
9 namespace media {
11 DecryptConfig::DecryptConfig(const std::string& key_id,
12 const std::string& iv,
13 const std::vector<SubsampleEntry>& subsamples)
14 : key_id_(key_id),
15 iv_(iv),
16 subsamples_(subsamples) {
17 CHECK_GT(key_id.size(), 0u);
18 CHECK(iv.size() == static_cast<size_t>(DecryptConfig::kDecryptionKeySize) ||
19 iv.empty());
22 DecryptConfig::~DecryptConfig() {}
24 } // namespace media