| 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 CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ | 6 #define CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 109 |
| 110 // Gets the pointer to WebMediaPlayerAndroid given the |player_id|. | 110 // Gets the pointer to WebMediaPlayerAndroid given the |player_id|. |
| 111 media::RendererMediaPlayerInterface* GetMediaPlayer(int player_id); | 111 media::RendererMediaPlayerInterface* GetMediaPlayer(int player_id); |
| 112 | 112 |
| 113 #if defined(VIDEO_HOLE) | 113 #if defined(VIDEO_HOLE) |
| 114 // Gets the list of media players with video geometry changes. | 114 // Gets the list of media players with video geometry changes. |
| 115 void RetrieveGeometryChanges(std::map<int, gfx::RectF>* changes); | 115 void RetrieveGeometryChanges(std::map<int, gfx::RectF>* changes); |
| 116 #endif // defined(VIDEO_HOLE) | 116 #endif // defined(VIDEO_HOLE) |
| 117 | 117 |
| 118 private: | 118 private: |
| 119 // RenderFrameObserver implementation. |
| 120 void OnDestruct() override; |
| 121 |
| 119 // Message handlers. | 122 // Message handlers. |
| 120 void OnMediaMetadataChanged(int player_id, | 123 void OnMediaMetadataChanged(int player_id, |
| 121 base::TimeDelta duration, | 124 base::TimeDelta duration, |
| 122 int width, | 125 int width, |
| 123 int height, | 126 int height, |
| 124 bool success); | 127 bool success); |
| 125 void OnMediaPlaybackCompleted(int player_id); | 128 void OnMediaPlaybackCompleted(int player_id); |
| 126 void OnMediaBufferingUpdate(int player_id, int percent); | 129 void OnMediaBufferingUpdate(int player_id, int percent); |
| 127 void OnSeekRequest(int player_id, const base::TimeDelta& time_to_seek); | 130 void OnSeekRequest(int player_id, const base::TimeDelta& time_to_seek); |
| 128 void OnSeekCompleted(int player_id, | 131 void OnSeekCompleted(int player_id, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 149 std::map<int, media::RendererMediaPlayerInterface*> media_players_; | 152 std::map<int, media::RendererMediaPlayerInterface*> media_players_; |
| 150 | 153 |
| 151 int next_media_player_id_; | 154 int next_media_player_id_; |
| 152 | 155 |
| 153 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); | 156 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); |
| 154 }; | 157 }; |
| 155 | 158 |
| 156 } // namespace content | 159 } // namespace content |
| 157 | 160 |
| 158 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ | 161 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ |
| OLD | NEW |