| 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 has_single_security_origin, |
| 50 bool allow_credentials); |
| 49 | 51 |
| 50 // Starts the player. | 52 // Starts the player. |
| 51 void Start(int player_id); | 53 void Start(int player_id); |
| 52 | 54 |
| 53 // Pauses the player. | 55 // Pauses the player. |
| 54 // is_media_related_action should be true if this pause is coming from an | 56 // 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.) | 57 // 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 | 58 // Otherwise it should be false if Pause is being called due to other reasons |
| 57 // (cleanup, freeing resources, etc.) | 59 // (cleanup, freeing resources, etc.) |
| 58 void Pause(int player_id, bool is_media_related_action); | 60 void Pause(int player_id, bool is_media_related_action); |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 | 164 |
| 163 // WebFrame of pending fullscreen request. | 165 // WebFrame of pending fullscreen request. |
| 164 blink::WebFrame* pending_fullscreen_frame_; | 166 blink::WebFrame* pending_fullscreen_frame_; |
| 165 | 167 |
| 166 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); | 168 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); |
| 167 }; | 169 }; |
| 168 | 170 |
| 169 } // namespace content | 171 } // namespace content |
| 170 | 172 |
| 171 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ | 173 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ |
| OLD | NEW |