Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Side by Side Diff: media/base/cdm_key_information.cc

Issue 833963003: Pass key_information on SessionKeysChange message (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GN changes Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 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.
4
5 #include "media/base/cdm_key_information.h"
6
7 namespace media {
8
9 CdmKeyInformation::CdmKeyInformation(const std::string& key_id,
10 KeyStatus status,
11 uint32 system_code)
12 : key_id_(key_id.begin(), key_id.end()),
13 status_(status),
14 system_code_(system_code) {
15 }
16
17 CdmKeyInformation::CdmKeyInformation(const uint8* key_id_data,
18 uint32 key_id_length,
19 KeyStatus status,
20 uint32 system_code)
21 : status_(status), system_code_(system_code) {
22 if (key_id_length > 0)
23 key_id_.assign(key_id_data, key_id_data + key_id_length);
24 }
25
26 CdmKeyInformation::~CdmKeyInformation() {
27 }
28
29 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698