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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // RenderViewObserver overrides. | 44 // RenderViewObserver overrides. |
45 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 45 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
46 | 46 |
47 // Initializes a MediaPlayerAndroid object in browser process. | 47 // Initializes a MediaPlayerAndroid object in browser process. |
48 void Initialize(MediaPlayerHostMsg_Initialize_Type type, | 48 void Initialize(MediaPlayerHostMsg_Initialize_Type type, |
49 int player_id, | 49 int player_id, |
50 const GURL& url, | 50 const GURL& url, |
51 const GURL& first_party_for_cookies, | 51 const GURL& first_party_for_cookies, |
52 int demuxer_client_id); | 52 int demuxer_client_id); |
53 | 53 |
| 54 // Sets the url of the frame containing the player with the given player_id |
| 55 void SetPlayerFrameUrl(int player_id, const GURL& frame_url); |
| 56 |
54 // Starts the player. | 57 // Starts the player. |
55 void Start(int player_id); | 58 void Start(int player_id); |
56 | 59 |
57 // Pauses the player. | 60 // Pauses the player. |
58 // is_media_related_action should be true if this pause is coming from an | 61 // is_media_related_action should be true if this pause is coming from an |
59 // an action that explicitly pauses the video (user pressing pause, JS, etc.) | 62 // an action that explicitly pauses the video (user pressing pause, JS, etc.) |
60 // Otherwise it should be false if Pause is being called due to other reasons | 63 // Otherwise it should be false if Pause is being called due to other reasons |
61 // (cleanup, freeing resources, etc.) | 64 // (cleanup, freeing resources, etc.) |
62 void Pause(int player_id, bool is_media_related_action); | 65 void Pause(int player_id, bool is_media_related_action); |
63 | 66 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 | 207 |
205 // WebFrame of pending fullscreen request. | 208 // WebFrame of pending fullscreen request. |
206 blink::WebFrame* pending_fullscreen_frame_; | 209 blink::WebFrame* pending_fullscreen_frame_; |
207 | 210 |
208 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); | 211 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); |
209 }; | 212 }; |
210 | 213 |
211 } // namespace content | 214 } // namespace content |
212 | 215 |
213 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ | 216 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ |
OLD | NEW |