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

Unified Diff: public/platform/WebEncryptedMediaKeyInformation.h

Issue 858693002: Add MediaKeySession.keystatuseschange event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: WebData 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
« no previous file with comments | « public/platform/WebContentDecryptionModuleSession.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebEncryptedMediaKeyInformation.h
diff --git a/public/platform/WebEncryptedMediaKeyInformation.h b/public/platform/WebEncryptedMediaKeyInformation.h
new file mode 100644
index 0000000000000000000000000000000000000000..9acb7f24d1fae550100d9953ce1e6efb4ddeb73e
--- /dev/null
+++ b/public/platform/WebEncryptedMediaKeyInformation.h
@@ -0,0 +1,42 @@
+// 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.
+
+#ifndef WebEncryptedMediaKeyInformation_h
+#define WebEncryptedMediaKeyInformation_h
+
+#include "WebCommon.h"
+#include "public/platform/WebData.h"
+
+namespace blink {
+
+class BLINK_PLATFORM_EXPORT WebEncryptedMediaKeyInformation {
+public:
+ enum class KeyStatus {
+ Usable,
+ Expired,
+ OutputNotAllowed,
+ InternalError
+ };
+
+ WebEncryptedMediaKeyInformation();
+ ~WebEncryptedMediaKeyInformation();
+
+ WebData id() const;
dcheng 2015/01/20 23:15:31 I think it's OK to inline all this stuff.
+ void setId(const WebData&);
+
+ KeyStatus status() const;
+ void setStatus(KeyStatus);
+
+ uint32_t systemCode() const;
+ void setSystemCode(uint32_t);
+
+private:
+ WebData m_id;
+ KeyStatus m_status;
+ uint32_t m_systemCode;
+};
+
+} // namespace blink
+
+#endif // WebEncryptedMediaKeyInformation_h
« no previous file with comments | « public/platform/WebContentDecryptionModuleSession.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698