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 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 // RenderView. | 25 // RenderView. |
26 class RendererMediaPlayerManager { | 26 class RendererMediaPlayerManager { |
27 public: | 27 public: |
28 RendererMediaPlayerManager(); | 28 RendererMediaPlayerManager(); |
29 virtual ~RendererMediaPlayerManager(); | 29 virtual ~RendererMediaPlayerManager(); |
30 | 30 |
31 // Register and unregister a WebMediaPlayerAndroid object. | 31 // Register and unregister a WebMediaPlayerAndroid object. |
32 int RegisterMediaPlayer(WebMediaPlayerAndroid* player); | 32 int RegisterMediaPlayer(WebMediaPlayerAndroid* player); |
33 void UnregisterMediaPlayer(int player_id); | 33 void UnregisterMediaPlayer(int player_id); |
34 | 34 |
35 // Release all the media resources managed by this object unless | 35 // Release the media resources managed by this object when a video |
36 // an audio play is in progress. | 36 // is playing. |
37 void ReleaseMediaResources(); | 37 void ReleaseVideoResources(); |
38 | 38 |
39 // Check whether a player can enter fullscreen. | 39 // Check whether a player can enter fullscreen. |
40 bool CanEnterFullscreen(WebKit::WebFrame* frame); | 40 bool CanEnterFullscreen(WebKit::WebFrame* frame); |
41 | 41 |
42 // Called when a player entered or exited fullscreen. | 42 // Called when a player entered or exited fullscreen. |
43 void DidEnterFullscreen(WebKit::WebFrame* frame); | 43 void DidEnterFullscreen(WebKit::WebFrame* frame); |
44 void DidExitFullscreen(); | 44 void DidExitFullscreen(); |
45 | 45 |
46 // Check whether the Webframe is in fullscreen. | 46 // Check whether the Webframe is in fullscreen. |
47 bool IsInFullscreen(WebKit::WebFrame* frame); | 47 bool IsInFullscreen(WebKit::WebFrame* frame); |
(...skipping 15 matching lines...) Expand all Loading... |
63 | 63 |
64 // WebFrame of the fullscreen video. | 64 // WebFrame of the fullscreen video. |
65 WebKit::WebFrame* fullscreen_frame_; | 65 WebKit::WebFrame* fullscreen_frame_; |
66 | 66 |
67 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); | 67 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); |
68 }; | 68 }; |
69 | 69 |
70 } // namespace content | 70 } // namespace content |
71 | 71 |
72 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ | 72 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ |
OLD | NEW |