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

Unified Diff: media/base/android/media_player_manager.h

Issue 315733003: Separate BrowserCdmManager from BrowserMediaPlayerManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor fix after rebase Created 6 years, 6 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
« no previous file with comments | « content/content_browser.gypi ('k') | media/base/android/media_source_player_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/media_player_manager.h
diff --git a/media/base/android/media_player_manager.h b/media/base/android/media_player_manager.h
index d7ee79149a4925d4c8854ad56c14a2bd9ef69e15..8975552f43a67848828339cd205d7d16eda0e4f5 100644
--- a/media/base/android/media_player_manager.h
+++ b/media/base/android/media_player_manager.h
@@ -5,21 +5,13 @@
#ifndef MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_
#define MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_
-#include <string>
-#include <vector>
-
#include "base/basictypes.h"
#include "base/time/time.h"
#include "media/base/android/demuxer_stream_player_params.h"
#include "media/base/media_export.h"
-#include "media/base/media_keys.h"
-#include "url/gurl.h"
-
-class GURL;
namespace media {
-class BrowserCdm;
class MediaPlayerAndroid;
class MediaResourceGetter;
@@ -74,39 +66,8 @@ class MEDIA_EXPORT MediaPlayerManager {
// Release all the players managed by this object.
virtual void DestroyAllMediaPlayers() = 0;
- // Get the CDM for the given CDM ID.
- virtual BrowserCdm* GetCdm(int cdm_id) = 0;
-
// Called by the player to get a hardware protected surface.
virtual void RequestFullScreen(int player_id) = 0;
-
- // The following five methods are related to EME.
- // TODO(xhwang): These methods needs to be decoupled from MediaPlayerManager
- // to support the W3C Working Draft version of the EME spec.
- // http://crbug.com/315312
-
- // Called when CDM creates a session.
- virtual void OnSessionCreated(int cdm_id,
- uint32 session_id,
- const std::string& web_session_id) = 0;
-
- // Called when CDM wants to send a Message event.
- virtual void OnSessionMessage(int cdm_id,
- uint32 session_id,
- const std::vector<uint8>& message,
- const GURL& destination_url) = 0;
-
- // Called when CDM wants to send a Ready event.
- virtual void OnSessionReady(int cdm_id, uint32 session_id) = 0;
-
- // Called when CDM wants to send a Closed event.
- virtual void OnSessionClosed(int cdm_id, uint32 session_id) = 0;
-
- // Called when CDM wants to send an Error event.
- virtual void OnSessionError(int cdm_id,
- uint32 session_id,
- MediaKeys::KeyError error_code,
- uint32 system_code) = 0;
};
} // namespace media
« no previous file with comments | « content/content_browser.gypi ('k') | media/base/android/media_source_player_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698