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

Unified Diff: webkit/renderer/media/android/webmediaplayer_proxy_android.h

Issue 17022008: Pass InitializeCDM() call through IPC to the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase only Created 7 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
Index: webkit/renderer/media/android/webmediaplayer_proxy_android.h
diff --git a/webkit/renderer/media/android/webmediaplayer_proxy_android.h b/webkit/renderer/media/android/webmediaplayer_proxy_android.h
index d900544d8a7ebbb9cb67235798dc67fb842e136c..90ba9c835432a5621adbeab12727eedbe6928430 100644
--- a/webkit/renderer/media/android/webmediaplayer_proxy_android.h
+++ b/webkit/renderer/media/android/webmediaplayer_proxy_android.h
@@ -22,65 +22,75 @@ class WebMediaPlayerProxyAndroid {
public:
virtual ~WebMediaPlayerProxyAndroid();
- // Initialize a MediaPlayerAndroid object in browser process
+ // Initializes a MediaPlayerAndroid object in browser process
virtual void Initialize(
int player_id,
const GURL& url,
media::MediaPlayerAndroid::SourceType source_type,
const GURL& first_party_for_cookies) = 0;
- // Start the player.
+ // Starts the player.
virtual void Start(int player_id) = 0;
- // Pause the player.
+ // Pauses the player.
virtual void Pause(int player_id) = 0;
- // Perform seek on the player.
+ // Performs seek on the player.
virtual void Seek(int player_id, base::TimeDelta time) = 0;
- // Release resources for the player.
+ // Releases resources for the player.
virtual void ReleaseResources(int player_id) = 0;
- // Destroy the player in the browser process
+ // Destroys the player in the browser process
virtual void DestroyPlayer(int player_id) = 0;
- // Request the player to enter fullscreen.
+ // Requests the player to enter fullscreen.
virtual void EnterFullscreen(int player_id) = 0;
- // Request the player to exit fullscreen.
+ // Requests the player to exit fullscreen.
virtual void ExitFullscreen(int player_id) = 0;
#if defined(GOOGLE_TV)
- // Request an external surface for out-of-band compositing.
+ // Requests an external surface for out-of-band compositing.
virtual void RequestExternalSurface(int player_id,
const gfx::RectF& geometry) = 0;
#endif
- // Inform the media source player that the demuxer is ready.
+ // Informs the media source player that the demuxer is ready.
virtual void DemuxerReady(
int player_id,
const media::MediaPlayerHostMsg_DemuxerReady_Params&) = 0;
- // Return the data to the media source player when data is ready.
+ // Returns the data to the media source player when data is ready.
virtual void ReadFromDemuxerAck(
int player_id,
const media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params& params) = 0;
- virtual void GenerateKeyRequest(int player_id,
+ // Informs the media source player of changed duration from demuxer.
+ virtual void DurationChanged(int player_id,
+ const base::TimeDelta& duration) = 0;
+
+ // Informs the MediaPlayerManager that a CDM that supports |uuid| should be
ddorwin 2013/06/20 22:07:01 "Informs" is weird. Tells? Can we just say "Initia
xhwang 2013/06/21 00:50:13 Done.
+ // created and initialized. The CDM is assigned a |media_keys_id| for future
ddorwin 2013/06/20 22:07:01 How is the |media_keys_id| reported to the caller
xhwang 2013/06/21 00:50:13 The renderer side allocates the |media_keys_id| an
+ // reference.
+ virtual void InitializeCDM(int media_keys_id,
ddorwin 2013/06/20 22:07:01 How do we know this is successful? I guess error r
xhwang 2013/06/21 00:50:13 Yes, it's async so we don't know. We could send a
+ const std::vector<uint8>& uuid) = 0;
+
+ // Informs the CDM referenced by |media_keys_id| to generate a key request.
+ virtual void GenerateKeyRequest(int media_keys_id,
const std::string& type,
const std::vector<uint8>& init_data) = 0;
- virtual void AddKey(int player_id,
+ // Adds a key to the CDM referenced by |media_keys_id|.
ddorwin 2013/06/20 22:07:01 This is inaccurate for update(), but I guess we ca
xhwang 2013/06/21 00:50:13 I still live in the V0.1b era :)
+ virtual void AddKey(int media_keys_id,
const std::vector<uint8>& key,
const std::vector<uint8>& init_data,
const std::string& session_id) = 0;
- virtual void CancelKeyRequest(int player_id,
+ // Destroys the session with |session_id| in the CDM referenced by
+ // |media_keys_id|.
+ virtual void CancelKeyRequest(int media_keys_id,
const std::string& session_id) = 0;
-
- // Inform the media source player of changed duration from demuxer.
- virtual void DurationChanged(int player_id,
- const base::TimeDelta& duration) = 0;
};
} // namespace webkit_media

Powered by Google App Engine
This is Rietveld 408576698