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

Unified Diff: public/platform/WebContentDecryptionModuleSession.h

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: public/platform/WebContentDecryptionModuleSession.h
diff --git a/public/platform/WebContentDecryptionModuleSession.h b/public/platform/WebContentDecryptionModuleSession.h
index ceca26788fa90f6ae66ba11709fa2b72b2c35a06..da87436ae791e90745169381dd348afdd4b8663b 100644
--- a/public/platform/WebContentDecryptionModuleSession.h
+++ b/public/platform/WebContentDecryptionModuleSession.h
@@ -32,11 +32,13 @@
#define WebContentDecryptionModuleSession_h
#include "WebCommon.h"
+#include "WebVector.h"
#include "public/platform/WebContentDecryptionModuleException.h"
#include "public/platform/WebContentDecryptionModuleResult.h"
namespace blink {
+class WebEncryptedMediaKeyInformation;
class WebString;
class WebURL;
@@ -60,6 +62,12 @@ public:
// since 01 January, 1970 UTC.
virtual void expirationChanged(double updatedExpiryTimeInMS) = 0;
+ // Called when the set of keys for this session change or existing keys
ddorwin 2015/01/17 00:34:56 nit: changes - the subject is "set"
jrummell 2015/01/20 19:46:34 Done.
+ // change state. |hasAdditionalUsableKey| is set if a key is newly
+ // usable (e.g. new key available, previously expired key has been
+ // renewed, etc.) and the browser should attempt to resume playback.
ddorwin 2015/01/17 00:34:56 "... attempt to resume playback if necessary."
jrummell 2015/01/20 19:46:34 Done.
+ virtual void keysChange(bool hasAdditionalUsableKey, const WebVector<WebEncryptedMediaKeyInformation>&) = 0;
+
protected:
virtual ~Client();
};

Powered by Google App Engine
This is Rietveld 408576698