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

Unified 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, 12 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 side-by-side diff with in-line comments
Download patch
Index: media/base/cdm_key_information.cc
diff --git a/media/base/cdm_key_information.cc b/media/base/cdm_key_information.cc
new file mode 100644
index 0000000000000000000000000000000000000000..39ccd97fc5d45ceea9179873b4dbca9697c5ebb5
--- /dev/null
+++ b/media/base/cdm_key_information.cc
@@ -0,0 +1,29 @@
+// Copyright 2015 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/cdm_key_information.h"
+
+namespace media {
+
+CdmKeyInformation::CdmKeyInformation(const std::string& key_id,
+ KeyStatus status,
+ uint32 system_code)
+ : key_id_(key_id.begin(), key_id.end()),
+ status_(status),
+ system_code_(system_code) {
+}
+
+CdmKeyInformation::CdmKeyInformation(const uint8* key_id_data,
+ uint32 key_id_length,
+ KeyStatus status,
+ uint32 system_code)
+ : status_(status), system_code_(system_code) {
+ if (key_id_length > 0)
+ key_id_.assign(key_id_data, key_id_data + key_id_length);
+}
+
+CdmKeyInformation::~CdmKeyInformation() {
+}
+
+} // namespace media

Powered by Google App Engine
This is Rietveld 408576698