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

Unified Diff: media/base/cdm_key_information.h

Issue 833963003: Pass key_information on SessionKeysChange message (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: media/base/cdm_key_information.h
diff --git a/media/base/cdm_key_information.h b/media/base/cdm_key_information.h
new file mode 100644
index 0000000000000000000000000000000000000000..f36c33a46d3e63dbe49d2b21c1b98558e81dbb9d
--- /dev/null
+++ b/media/base/cdm_key_information.h
@@ -0,0 +1,34 @@
+// 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 MEDIA_BASE_CDM_KEY_INFORMATION_H_
+#define MEDIA_BASE_CDM_KEY_INFORMATION_H_
+
+#include <string>
+#include <vector>
+
+#include "base/basictypes.h"
+#include "media/base/media_export.h"
+
+namespace media {
+
+struct MEDIA_EXPORT CdmKeyInformation {
+ enum KeyStatus {
+ USABLE = 0,
+ INTERNAL_ERROR = 1,
+ EXPIRED = 2,
+ OUTPUT_NOT_ALLOWED = 3
+ };
+
+ CdmKeyInformation();
+ ~CdmKeyInformation();
+
+ std::vector<uint8> key_id;
+ KeyStatus status;
+ uint32 system_code;
+};
+
+} // namespace media
+
+#endif // MEDIA_BASE_CDM_KEY_INFORMATION_H_

Powered by Google App Engine
This is Rietveld 408576698