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

Unified Diff: content/renderer/media/webcontentdecryptionmodule_impl.h

Issue 193523002: Encrypted Media: Implement IPC based SetCdm(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments addressed Created 6 years, 9 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: content/renderer/media/webcontentdecryptionmodule_impl.h
diff --git a/content/renderer/media/webcontentdecryptionmodule_impl.h b/content/renderer/media/webcontentdecryptionmodule_impl.h
index d799664bf632065937207e780f4d0dbc55c74182..5f280eeed17928bdafb04056f11f55a6eec2f42b 100644
--- a/content/renderer/media/webcontentdecryptionmodule_impl.h
+++ b/content/renderer/media/webcontentdecryptionmodule_impl.h
@@ -47,16 +47,32 @@ class WebContentDecryptionModuleImpl
// after WebContentDecryptionModule is freed. http://crbug.com/330324
media::Decryptor* GetDecryptor();
+#if defined(OS_ANDROID)
+ // Returns the CDM ID associated with this object. May be kInvalidCdmId if no
+ // CDM ID is associated.
ddorwin 2014/03/25 23:03:59 Ditto about why this might happen.
xhwang 2014/03/26 06:02:04 ditto
+ int GetCdmId();
+#endif // defined(OS_ANDROID)
+
// blink::WebContentDecryptionModule implementation.
virtual blink::WebContentDecryptionModuleSession* createSession(
blink::WebContentDecryptionModuleSession::Client* client);
private:
// Takes reference to |adapter|.
- WebContentDecryptionModuleImpl(scoped_refptr<CdmSessionAdapter> adapter);
+ WebContentDecryptionModuleImpl(
+#if defined(OS_ANDROID)
+ scoped_refptr<CdmSessionAdapter> adapter,
+ int cdm_id);
ddorwin 2014/03/25 23:03:59 nit: if you flip the order, you only need to ifdef
xhwang 2014/03/26 06:02:04 Obsolete in PS4.
+#else
+ scoped_refptr<CdmSessionAdapter> adapter);
+#endif
scoped_refptr<CdmSessionAdapter> adapter_;
+#if defined(OS_ANDROID)
+ int cdm_id_;
+#endif // defined(OS_ANDROID)
+
DISALLOW_COPY_AND_ASSIGN(WebContentDecryptionModuleImpl);
};

Powered by Google App Engine
This is Rietveld 408576698