| 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 #include "content/renderer/media/android/renderer_media_player_manager.h" | 5 #include "content/renderer/media/android/renderer_media_player_manager.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "content/common/media/cdm_messages.h" | 9 #include "content/common/media/cdm_messages.h" |
| 10 #include "content/common/media/media_player_messages_android.h" | 10 #include "content/common/media/media_player_messages_android.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 MediaPlayerHostMsg_Initialize_Type type, | 81 MediaPlayerHostMsg_Initialize_Type type, |
| 82 int player_id, | 82 int player_id, |
| 83 const GURL& url, | 83 const GURL& url, |
| 84 const GURL& first_party_for_cookies, | 84 const GURL& first_party_for_cookies, |
| 85 int demuxer_client_id) { | 85 int demuxer_client_id) { |
| 86 Send(new MediaPlayerHostMsg_Initialize( | 86 Send(new MediaPlayerHostMsg_Initialize( |
| 87 routing_id(), type, player_id, url, first_party_for_cookies, | 87 routing_id(), type, player_id, url, first_party_for_cookies, |
| 88 demuxer_client_id)); | 88 demuxer_client_id)); |
| 89 } | 89 } |
| 90 | 90 |
| 91 void RendererMediaPlayerManager::SetPlayerFrameUrl(int player_id, |
| 92 const GURL& frame_url) { |
| 93 Send(new MediaPlayerHostMsg_SetFrameUrl(routing_id(), player_id, frame_url)); |
| 94 } |
| 95 |
| 91 void RendererMediaPlayerManager::Start(int player_id) { | 96 void RendererMediaPlayerManager::Start(int player_id) { |
| 92 Send(new MediaPlayerHostMsg_Start(routing_id(), player_id)); | 97 Send(new MediaPlayerHostMsg_Start(routing_id(), player_id)); |
| 93 } | 98 } |
| 94 | 99 |
| 95 void RendererMediaPlayerManager::Pause( | 100 void RendererMediaPlayerManager::Pause( |
| 96 int player_id, | 101 int player_id, |
| 97 bool is_media_related_action) { | 102 bool is_media_related_action) { |
| 98 Send(new MediaPlayerHostMsg_Pause( | 103 Send(new MediaPlayerHostMsg_Pause( |
| 99 routing_id(), player_id, is_media_related_action)); | 104 routing_id(), player_id, is_media_related_action)); |
| 100 } | 105 } |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 | 449 |
| 445 bool | 450 bool |
| 446 RendererMediaPlayerManager::ShouldUseVideoOverlayForEmbeddedEncryptedVideo() { | 451 RendererMediaPlayerManager::ShouldUseVideoOverlayForEmbeddedEncryptedVideo() { |
| 447 const RendererPreferences& prefs = static_cast<RenderViewImpl*>( | 452 const RendererPreferences& prefs = static_cast<RenderViewImpl*>( |
| 448 render_view())->renderer_preferences(); | 453 render_view())->renderer_preferences(); |
| 449 return prefs.use_video_overlay_for_embedded_encrypted_video; | 454 return prefs.use_video_overlay_for_embedded_encrypted_video; |
| 450 } | 455 } |
| 451 #endif // defined(VIDEO_HOLE) | 456 #endif // defined(VIDEO_HOLE) |
| 452 | 457 |
| 453 } // namespace content | 458 } // namespace content |
| OLD | NEW |