Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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_ |
| OLD | NEW |