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

Unified Diff: Source/platform/exported/WebEncryptedMediaKeyInformation.cpp

Issue 858693002: Add MediaKeySession.keystatuseschange event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: Source/platform/exported/WebEncryptedMediaKeyInformation.cpp
diff --git a/Source/platform/exported/WebEncryptedMediaKeyInformation.cpp b/Source/platform/exported/WebEncryptedMediaKeyInformation.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..8bc6e90ad22d1cd2bca00c790321d4ef1f5a5bca
--- /dev/null
+++ b/Source/platform/exported/WebEncryptedMediaKeyInformation.cpp
@@ -0,0 +1,49 @@
+// 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 "config.h"
+#include "public/platform/WebEncryptedMediaKeyInformation.h"
+
+namespace blink {
+
+WebEncryptedMediaKeyInformation::WebEncryptedMediaKeyInformation()
+{
+}
+
+WebEncryptedMediaKeyInformation::~WebEncryptedMediaKeyInformation()
+{
+}
+
+const WebVector<unsigned char>& WebEncryptedMediaKeyInformation::id() const
+{
+ return m_id;
+}
+
+void WebEncryptedMediaKeyInformation::setId(const unsigned char* id, size_t idLength)
+{
+ WebVector<unsigned char> newId(id, idLength);
ddorwin 2015/01/17 00:34:56 Is there a reason you don't use assign() instead o
jrummell 2015/01/20 19:46:34 Done.
+ m_id.swap(newId);
+}
+
+WebEncryptedMediaKeyInformation::KeyStatus WebEncryptedMediaKeyInformation::status() const
+{
+ return m_status;
+}
+
+void WebEncryptedMediaKeyInformation::setStatus(KeyStatus status)
+{
+ m_status = status;
+}
+
+uint32_t WebEncryptedMediaKeyInformation::systemCode() const
+{
+ return m_systemCode;
+}
+
+void WebEncryptedMediaKeyInformation::setSystemCode(uint32_t systemCode)
+{
+ m_systemCode = systemCode;
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698