| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 GenerateKeyRequest(int player_id, |
| 58 const std::string& key_system, | |
| 59 const std::string& type, | 58 const std::string& type, |
| 60 const std::vector<uint8>& init_data) OVERRIDE; | 59 const std::vector<uint8>& init_data) OVERRIDE; |
| 61 virtual void AddKey(int player_id, | 60 virtual void AddKey(int player_id, |
| 62 const std::string& key_system, | |
| 63 const std::vector<uint8>& key, | 61 const std::vector<uint8>& key, |
| 64 const std::vector<uint8>& init_data, | 62 const std::vector<uint8>& init_data, |
| 65 const std::string& session_id) OVERRIDE; | 63 const std::string& session_id) OVERRIDE; |
| 66 virtual void CancelKeyRequest(int player_id, | 64 virtual void CancelKeyRequest(int player_id, |
| 67 const std::string& key_system, | |
| 68 const std::string& session_id) OVERRIDE; | 65 const std::string& session_id) OVERRIDE; |
| 69 virtual void DurationChanged(int player_id, | 66 virtual void DurationChanged(int player_id, |
| 70 const base::TimeDelta& duration) OVERRIDE; | 67 const base::TimeDelta& duration) OVERRIDE; |
| 71 | 68 |
| 72 #if defined(GOOGLE_TV) | 69 #if defined(GOOGLE_TV) |
| 73 virtual void RequestExternalSurface( | 70 virtual void RequestExternalSurface( |
| 74 int player_id, const gfx::RectF& geometry) OVERRIDE; | 71 int player_id, const gfx::RectF& geometry) OVERRIDE; |
| 75 | 72 |
| 76 // Methods inherited from RenderViewObserver. | 73 // Methods inherited from RenderViewObserver. |
| 77 virtual void DidCommitCompositorFrame() OVERRIDE; | 74 virtual void DidCommitCompositorFrame() OVERRIDE; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 93 void OnDidExitFullscreen(int player_id); | 90 void OnDidExitFullscreen(int player_id); |
| 94 void OnDidEnterFullscreen(int player_id); | 91 void OnDidEnterFullscreen(int player_id); |
| 95 void OnPlayerPlay(int player_id); | 92 void OnPlayerPlay(int player_id); |
| 96 void OnPlayerPause(int player_id); | 93 void OnPlayerPause(int player_id); |
| 97 void OnReadFromDemuxer( | 94 void OnReadFromDemuxer( |
| 98 int player_id, media::DemuxerStream::Type type, bool seek_done); | 95 int player_id, media::DemuxerStream::Type type, bool seek_done); |
| 99 void OnMediaSeekRequest(int player_id, base::TimeDelta time_to_seek, | 96 void OnMediaSeekRequest(int player_id, base::TimeDelta time_to_seek, |
| 100 unsigned seek_request_id); | 97 unsigned seek_request_id); |
| 101 void OnMediaConfigRequest(int player_id); | 98 void OnMediaConfigRequest(int player_id); |
| 102 void OnKeyAdded(int player_id, | 99 void OnKeyAdded(int player_id, |
| 103 const std::string& key_system, | |
| 104 const std::string& session_id); | 100 const std::string& session_id); |
| 105 void OnKeyError(int player_id, | 101 void OnKeyError(int player_id, |
| 106 const std::string& key_system, | |
| 107 const std::string& session_id, | 102 const std::string& session_id, |
| 108 media::MediaKeys::KeyError error_code, | 103 media::MediaKeys::KeyError error_code, |
| 109 int system_code); | 104 int system_code); |
| 110 void OnKeyMessage(int player_id, | 105 void OnKeyMessage(int player_id, |
| 111 const std::string& key_system, | |
| 112 const std::string& session_id, | 106 const std::string& session_id, |
| 113 const std::string& message, | 107 const std::string& message, |
| 114 const std::string& destination_url); | 108 const std::string& destination_url); |
| 115 | 109 |
| 116 webkit_media::WebMediaPlayerManagerAndroid* manager_; | 110 webkit_media::WebMediaPlayerManagerAndroid* manager_; |
| 117 | 111 |
| 118 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerProxyImplAndroid); | 112 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerProxyImplAndroid); |
| 119 }; | 113 }; |
| 120 | 114 |
| 121 } // namespace content | 115 } // namespace content |
| 122 | 116 |
| 123 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_PROXY_IMPL_ANDROID_H_ | 117 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_PROXY_IMPL_ANDROID_H_ |
| OLD | NEW |