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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/media/webmediaplayer_proxy_impl_android.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_PROXY_ANDROID_H_ 5 #ifndef WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_PROXY_ANDROID_H_
6 #define WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_PROXY_ANDROID_H_ 6 #define WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_PROXY_ANDROID_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // Inform the media source player that the demuxer is ready. 59 // Inform the media source player that the demuxer is ready.
60 virtual void DemuxerReady( 60 virtual void DemuxerReady(
61 int player_id, 61 int player_id,
62 const media::MediaPlayerHostMsg_DemuxerReady_Params&) = 0; 62 const media::MediaPlayerHostMsg_DemuxerReady_Params&) = 0;
63 63
64 // Return the data to the media source player when data is ready. 64 // Return the data to the media source player when data is ready.
65 virtual void ReadFromDemuxerAck( 65 virtual void ReadFromDemuxerAck(
66 int player_id, 66 int player_id,
67 const media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params& params) = 0; 67 const media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params& params) = 0;
68 68
69 virtual void GenerateKeyRequest(int player_id, 69 // Inform the media source player of changed duration from demuxer.
70 virtual void DurationChanged(int player_id,
71 const base::TimeDelta& duration) = 0;
72
73 virtual void InitializeCDM(int media_keys_id,
qinmin 2013/06/20 20:47:38 descriptions?
xhwang 2013/06/20 21:30:37 Done.
74 const std::vector<uint8>& uuid) = 0;
75
76 virtual void GenerateKeyRequest(int media_keys_id,
70 const std::string& type, 77 const std::string& type,
71 const std::vector<uint8>& init_data) = 0; 78 const std::vector<uint8>& init_data) = 0;
72 79
73 virtual void AddKey(int player_id, 80 virtual void AddKey(int media_keys_id,
74 const std::vector<uint8>& key, 81 const std::vector<uint8>& key,
75 const std::vector<uint8>& init_data, 82 const std::vector<uint8>& init_data,
76 const std::string& session_id) = 0; 83 const std::string& session_id) = 0;
77 84
78 virtual void CancelKeyRequest(int player_id, 85 virtual void CancelKeyRequest(int media_keys_id,
79 const std::string& session_id) = 0; 86 const std::string& session_id) = 0;
80
81 // Inform the media source player of changed duration from demuxer.
82 virtual void DurationChanged(int player_id,
83 const base::TimeDelta& duration) = 0;
84 }; 87 };
85 88
86 } // namespace webkit_media 89 } // namespace webkit_media
87 90
88 #endif // WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_PROXY_ANDROID_H_ 91 #endif // WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_PROXY_ANDROID_H_
OLDNEW
« no previous file with comments | « content/renderer/media/webmediaplayer_proxy_impl_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698