| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_PROXY_IMPL_ANDROID_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_PROXY_IMPL_ANDROID_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_PROXY_IMPL_ANDROID_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_PROXY_IMPL_ANDROID_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "content/public/renderer/render_view_observer.h" | 10 #include "content/public/renderer/render_view_observer.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 virtual void ReleaseResources(int player_id) OVERRIDE; | 47 virtual void ReleaseResources(int player_id) OVERRIDE; |
| 48 virtual void DestroyPlayer(int player_id) OVERRIDE; | 48 virtual void DestroyPlayer(int player_id) OVERRIDE; |
| 49 virtual void EnterFullscreen(int player_id) OVERRIDE; | 49 virtual void EnterFullscreen(int player_id) OVERRIDE; |
| 50 virtual void ExitFullscreen(int player_id) OVERRIDE; | 50 virtual void ExitFullscreen(int player_id) OVERRIDE; |
| 51 virtual void DemuxerReady( | 51 virtual void DemuxerReady( |
| 52 int player_id, | 52 int player_id, |
| 53 const media::MediaPlayerHostMsg_DemuxerReady_Params& params) OVERRIDE; | 53 const media::MediaPlayerHostMsg_DemuxerReady_Params& params) OVERRIDE; |
| 54 virtual void ReadFromDemuxerAck( | 54 virtual void ReadFromDemuxerAck( |
| 55 int player_id, | 55 int player_id, |
| 56 const media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params&) OVERRIDE; | 56 const media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params&) OVERRIDE; |
| 57 virtual void GenerateKeyRequest(int player_id, | 57 virtual void DurationChanged(int player_id, |
| 58 const base::TimeDelta& duration) OVERRIDE; |
| 59 virtual void InitializeCDM(int media_keys_id, |
| 60 const std::vector<uint8>& uuid) OVERRIDE; |
| 61 virtual void GenerateKeyRequest(int media_keys_id, |
| 58 const std::string& type, | 62 const std::string& type, |
| 59 const std::vector<uint8>& init_data) OVERRIDE; | 63 const std::vector<uint8>& init_data) OVERRIDE; |
| 60 virtual void AddKey(int player_id, | 64 virtual void AddKey(int media_keys_id, |
| 61 const std::vector<uint8>& key, | 65 const std::vector<uint8>& key, |
| 62 const std::vector<uint8>& init_data, | 66 const std::vector<uint8>& init_data, |
| 63 const std::string& session_id) OVERRIDE; | 67 const std::string& session_id) OVERRIDE; |
| 64 virtual void CancelKeyRequest(int player_id, | 68 virtual void CancelKeyRequest(int media_keys_id, |
| 65 const std::string& session_id) OVERRIDE; | 69 const std::string& session_id) OVERRIDE; |
| 66 virtual void DurationChanged(int player_id, | |
| 67 const base::TimeDelta& duration) OVERRIDE; | |
| 68 | 70 |
| 69 #if defined(GOOGLE_TV) | 71 #if defined(GOOGLE_TV) |
| 70 virtual void RequestExternalSurface( | 72 virtual void RequestExternalSurface( |
| 71 int player_id, const gfx::RectF& geometry) OVERRIDE; | 73 int player_id, const gfx::RectF& geometry) OVERRIDE; |
| 72 | 74 |
| 73 // Methods inherited from RenderViewObserver. | 75 // Methods inherited from RenderViewObserver. |
| 74 virtual void DidCommitCompositorFrame() OVERRIDE; | 76 virtual void DidCommitCompositorFrame() OVERRIDE; |
| 75 #endif | 77 #endif |
| 76 | 78 |
| 77 private: | 79 private: |
| (...skipping 11 matching lines...) Expand all Loading... |
| 89 void OnMediaPlayerReleased(int player_id); | 91 void OnMediaPlayerReleased(int player_id); |
| 90 void OnDidExitFullscreen(int player_id); | 92 void OnDidExitFullscreen(int player_id); |
| 91 void OnDidEnterFullscreen(int player_id); | 93 void OnDidEnterFullscreen(int player_id); |
| 92 void OnPlayerPlay(int player_id); | 94 void OnPlayerPlay(int player_id); |
| 93 void OnPlayerPause(int player_id); | 95 void OnPlayerPause(int player_id); |
| 94 void OnReadFromDemuxer( | 96 void OnReadFromDemuxer( |
| 95 int player_id, media::DemuxerStream::Type type, bool seek_done); | 97 int player_id, media::DemuxerStream::Type type, bool seek_done); |
| 96 void OnMediaSeekRequest(int player_id, base::TimeDelta time_to_seek, | 98 void OnMediaSeekRequest(int player_id, base::TimeDelta time_to_seek, |
| 97 unsigned seek_request_id); | 99 unsigned seek_request_id); |
| 98 void OnMediaConfigRequest(int player_id); | 100 void OnMediaConfigRequest(int player_id); |
| 99 void OnKeyAdded(int player_id, | 101 void OnKeyAdded(int media_keys_id, |
| 100 const std::string& session_id); | 102 const std::string& session_id); |
| 101 void OnKeyError(int player_id, | 103 void OnKeyError(int media_keys_id, |
| 102 const std::string& session_id, | 104 const std::string& session_id, |
| 103 media::MediaKeys::KeyError error_code, | 105 media::MediaKeys::KeyError error_code, |
| 104 int system_code); | 106 int system_code); |
| 105 void OnKeyMessage(int player_id, | 107 void OnKeyMessage(int media_keys_id, |
| 106 const std::string& session_id, | 108 const std::string& session_id, |
| 107 const std::string& message, | 109 const std::string& message, |
| 108 const std::string& destination_url); | 110 const std::string& destination_url); |
| 109 | 111 |
| 110 webkit_media::WebMediaPlayerManagerAndroid* manager_; | 112 webkit_media::WebMediaPlayerManagerAndroid* manager_; |
| 111 | 113 |
| 112 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerProxyImplAndroid); | 114 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerProxyImplAndroid); |
| 113 }; | 115 }; |
| 114 | 116 |
| 115 } // namespace content | 117 } // namespace content |
| 116 | 118 |
| 117 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_PROXY_IMPL_ANDROID_H_ | 119 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_PROXY_IMPL_ANDROID_H_ |
| OLD | NEW |