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 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "content/public/renderer/render_frame_observer.h" | 13 #include "content/public/renderer/render_frame_observer.h" |
14 #include "media/base/android/media_player_android.h" | 14 #include "media/base/android/media_player_android.h" |
15 #include "media/blink/renderer_media_player_interface.h" | 15 #include "media/blink/renderer_media_player_interface.h" |
16 #include "url/gurl.h" | 16 #include "url/gurl.h" |
17 | 17 |
18 namespace blink { | |
19 class WebFrame; | |
20 } | |
21 | |
22 namespace gfx { | |
23 class RectF; | |
24 } | |
25 | |
26 struct MediaPlayerHostMsg_Initialize_Params; | |
27 | |
28 namespace content { | 18 namespace content { |
29 class WebMediaPlayerAndroid; | 19 class WebMediaPlayerAndroid; |
30 | 20 |
31 // Class for managing all the WebMediaPlayerAndroid objects in the same | 21 // Class for managing all the WebMediaPlayerAndroid objects in the same |
32 // RenderFrame. | 22 // RenderFrame. |
33 class RendererMediaPlayerManager : | 23 class RendererMediaPlayerManager : |
34 public RenderFrameObserver, | 24 public RenderFrameObserver, |
35 public media::RendererMediaPlayerManagerInterface { | 25 public media::RendererMediaPlayerManagerInterface { |
36 public: | 26 public: |
37 // Constructs a RendererMediaPlayerManager object for the |render_frame|. | 27 // Constructs a RendererMediaPlayerManager object for the |render_frame|. |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 std::map<int, media::RendererMediaPlayerInterface*> media_players_; | 117 std::map<int, media::RendererMediaPlayerInterface*> media_players_; |
128 | 118 |
129 int next_media_player_id_; | 119 int next_media_player_id_; |
130 | 120 |
131 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); | 121 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); |
132 }; | 122 }; |
133 | 123 |
134 } // namespace content | 124 } // namespace content |
135 | 125 |
136 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ | 126 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ |
OLD | NEW |