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

Unified Diff: media/base/browser_cdm.h

Issue 850183002: media: Support unprefixed EME API on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only 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/browser_cdm.h
diff --git a/media/base/browser_cdm.h b/media/base/browser_cdm.h
index 6a96b7fe9fc182abc775099836719017378d60e1..f4902d8708bc16253b40a52b1dac41db923cab9d 100644
--- a/media/base/browser_cdm.h
+++ b/media/base/browser_cdm.h
@@ -12,45 +12,10 @@
namespace media {
// Interface for browser side CDMs.
-class MEDIA_EXPORT BrowserCdm : public PlayerTracker {
+class MEDIA_EXPORT BrowserCdm : public MediaKeys, public PlayerTracker {
public:
- // TODO(jrummell): Update this to actually derive from MediaKeys
- // (Use web_session_id rather than session_id).
- typedef base::Callback<
- void(uint32 session_id, const std::string& web_session_id)>
- SessionCreatedCB;
-
- typedef base::Callback<void(uint32 session_id,
- const std::vector<uint8>& message,
- const GURL& destination_url)> SessionMessageCB;
-
- typedef base::Callback<void(uint32 session_id)> SessionReadyCB;
-
- typedef base::Callback<void(uint32 session_id)> SessionClosedCB;
-
- typedef base::Callback<void(uint32 session_id,
- media::MediaKeys::KeyError error_code,
- uint32 system_code)> SessionErrorCB;
-
~BrowserCdm() override;
- // MediaKeys-like implementation.
- virtual bool CreateSession(uint32 session_id,
- const std::string& content_type,
- const uint8* init_data,
- int init_data_length) = 0;
- virtual void LoadSession(uint32 session_id,
- const std::string& web_session_id) = 0;
- virtual void UpdateSession(uint32 session_id,
- const uint8* response,
- int response_length) = 0;
- virtual void ReleaseSession(uint32 session_id) = 0;
-
- // PlayerTracker implementation.
- int RegisterPlayer(const base::Closure& new_key_cb,
- const base::Closure& cdm_unset_cb) override = 0;
- void UnregisterPlayer(int registration_id) override = 0;
-
protected:
BrowserCdm();

Powered by Google App Engine
This is Rietveld 408576698