| 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 #include <vector> | 10 #include <vector> |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 // Destroys the player in the browser process | 74 // Destroys the player in the browser process |
| 75 void DestroyPlayer(int player_id); | 75 void DestroyPlayer(int player_id); |
| 76 | 76 |
| 77 // Requests the player to enter fullscreen. | 77 // Requests the player to enter fullscreen. |
| 78 void EnterFullscreen(int player_id, blink::WebFrame* frame); | 78 void EnterFullscreen(int player_id, blink::WebFrame* frame); |
| 79 | 79 |
| 80 // Requests the player to exit fullscreen. | 80 // Requests the player to exit fullscreen. |
| 81 void ExitFullscreen(int player_id); | 81 void ExitFullscreen(int player_id); |
| 82 | 82 |
| 83 // Requests the player with |player_id| to use the CDM with |cdm_id|. |
| 84 void SetMediaKeys(int player_id, int cdm_id); |
| 85 |
| 83 #if defined(VIDEO_HOLE) | 86 #if defined(VIDEO_HOLE) |
| 84 // Requests an external surface for out-of-band compositing. | 87 // Requests an external surface for out-of-band compositing. |
| 85 void RequestExternalSurface(int player_id, const gfx::RectF& geometry); | 88 void RequestExternalSurface(int player_id, const gfx::RectF& geometry); |
| 86 | 89 |
| 87 // RenderViewObserver overrides. | 90 // RenderViewObserver overrides. |
| 88 virtual void DidCommitCompositorFrame() OVERRIDE; | 91 virtual void DidCommitCompositorFrame() OVERRIDE; |
| 89 #endif // defined(VIDEO_HOLE) | 92 #endif // defined(VIDEO_HOLE) |
| 90 | 93 |
| 91 // Encrypted media related methods. | 94 // Encrypted media related methods. |
| 92 void InitializeCdm(int cdm_id, | 95 void InitializeCdm(int cdm_id, |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 | 195 |
| 193 // WebFrame of pending fullscreen request. | 196 // WebFrame of pending fullscreen request. |
| 194 blink::WebFrame* pending_fullscreen_frame_; | 197 blink::WebFrame* pending_fullscreen_frame_; |
| 195 | 198 |
| 196 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); | 199 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); |
| 197 }; | 200 }; |
| 198 | 201 |
| 199 } // namespace content | 202 } // namespace content |
| 200 | 203 |
| 201 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ | 204 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ |
| OLD | NEW |