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 27 matching lines...) Expand all Loading... |
38 | 38 |
39 // RenderFrameObserver overrides. | 39 // RenderFrameObserver overrides. |
40 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 40 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
41 | 41 |
42 // Initializes a MediaPlayerAndroid object in browser process. | 42 // Initializes a MediaPlayerAndroid object in browser process. |
43 void Initialize(MediaPlayerHostMsg_Initialize_Type type, | 43 void Initialize(MediaPlayerHostMsg_Initialize_Type type, |
44 int player_id, | 44 int player_id, |
45 const GURL& url, | 45 const GURL& url, |
46 const GURL& first_party_for_cookies, | 46 const GURL& first_party_for_cookies, |
47 int demuxer_client_id, | 47 int demuxer_client_id, |
48 const GURL& frame_url); | 48 const GURL& frame_url, |
| 49 bool allow_credentials); |
49 | 50 |
50 // Starts the player. | 51 // Starts the player. |
51 void Start(int player_id); | 52 void Start(int player_id); |
52 | 53 |
53 // Pauses the player. | 54 // Pauses the player. |
54 // is_media_related_action should be true if this pause is coming from an | 55 // is_media_related_action should be true if this pause is coming from an |
55 // an action that explicitly pauses the video (user pressing pause, JS, etc.) | 56 // an action that explicitly pauses the video (user pressing pause, JS, etc.) |
56 // Otherwise it should be false if Pause is being called due to other reasons | 57 // Otherwise it should be false if Pause is being called due to other reasons |
57 // (cleanup, freeing resources, etc.) | 58 // (cleanup, freeing resources, etc.) |
58 void Pause(int player_id, bool is_media_related_action); | 59 void Pause(int player_id, bool is_media_related_action); |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 | 163 |
163 // WebFrame of pending fullscreen request. | 164 // WebFrame of pending fullscreen request. |
164 blink::WebFrame* pending_fullscreen_frame_; | 165 blink::WebFrame* pending_fullscreen_frame_; |
165 | 166 |
166 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); | 167 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); |
167 }; | 168 }; |
168 | 169 |
169 } // namespace content | 170 } // namespace content |
170 | 171 |
171 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ | 172 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ |
OLD | NEW |