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

Unified Diff: Source/modules/encryptedmedia/MediaKeySession.h

Issue 621903003: Add MediaKeySession.expiration attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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/modules/encryptedmedia/MediaKeySession.h
diff --git a/Source/modules/encryptedmedia/MediaKeySession.h b/Source/modules/encryptedmedia/MediaKeySession.h
index 31c1a202759f25c5051e316d90a397139bba4dcd..5693d35aece5d9ad39ddecf7939bde59945761ca 100644
--- a/Source/modules/encryptedmedia/MediaKeySession.h
+++ b/Source/modules/encryptedmedia/MediaKeySession.h
@@ -70,6 +70,7 @@ public:
const String& keySystem() const { return m_keySystem; }
String sessionId() const;
+ double expiration() { return m_expiration; }
ddorwin 2014/10/01 23:00:53 const function
jrummell 2014/10/03 00:36:10 Done.
ScriptPromise closed(ScriptState*);
ScriptPromise generateRequest(ScriptState*, const String& initDataType, ArrayBuffer* initData);
@@ -108,6 +109,7 @@ private:
virtual void close() OVERRIDE;
virtual void error(MediaKeyErrorCode, unsigned long systemCode) OVERRIDE;
virtual void error(WebContentDecryptionModuleException, unsigned long systemCode, const WebString& errorMessage) OVERRIDE;
+ virtual void expirationChanged(double updatedExpiryTimeInMS) OVERRIDE;
ScriptPromise generateRequestInternal(ScriptState*, const String& initDataType, PassRefPtr<ArrayBuffer> initData);
ScriptPromise updateInternal(ScriptState*, PassRefPtr<ArrayBuffer> response);
@@ -125,6 +127,7 @@ private:
// Session properties.
String m_sessionType;
+ double m_expiration;
// Session states.
bool m_isUninitialized;
« no previous file with comments | « no previous file | Source/modules/encryptedmedia/MediaKeySession.cpp » ('j') | Source/modules/encryptedmedia/MediaKeySession.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698