Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: content/browser/media/media_web_contents_observer.cc

Issue 349923007: Implement media Cast button in Blink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, now that the Blink patch has landed. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/browser/media/media_web_contents_observer.h" 5 #include "content/browser/media/media_web_contents_observer.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "content/browser/media/cdm/browser_cdm_manager.h" 9 #include "content/browser/media/cdm/browser_cdm_manager.h"
10 #include "content/common/media/cdm_messages.h" 10 #include "content/common/media/cdm_messages.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 BrowserMediaPlayerManager::OnSetVolume) 122 BrowserMediaPlayerManager::OnSetVolume)
123 IPC_MESSAGE_FORWARD(MediaPlayerHostMsg_SetPoster, 123 IPC_MESSAGE_FORWARD(MediaPlayerHostMsg_SetPoster,
124 GetMediaPlayerManager(render_frame_host), 124 GetMediaPlayerManager(render_frame_host),
125 BrowserMediaPlayerManager::OnSetPoster) 125 BrowserMediaPlayerManager::OnSetPoster)
126 IPC_MESSAGE_FORWARD(MediaPlayerHostMsg_Release, 126 IPC_MESSAGE_FORWARD(MediaPlayerHostMsg_Release,
127 GetMediaPlayerManager(render_frame_host), 127 GetMediaPlayerManager(render_frame_host),
128 BrowserMediaPlayerManager::OnReleaseResources) 128 BrowserMediaPlayerManager::OnReleaseResources)
129 IPC_MESSAGE_FORWARD(MediaPlayerHostMsg_DestroyMediaPlayer, 129 IPC_MESSAGE_FORWARD(MediaPlayerHostMsg_DestroyMediaPlayer,
130 GetMediaPlayerManager(render_frame_host), 130 GetMediaPlayerManager(render_frame_host),
131 BrowserMediaPlayerManager::OnDestroyPlayer) 131 BrowserMediaPlayerManager::OnDestroyPlayer)
132 IPC_MESSAGE_FORWARD(MediaPlayerHostMsg_RequestRemotePlayback,
133 GetMediaPlayerManager(render_frame_host),
134 BrowserMediaPlayerManager::OnRequestRemotePlayback)
135 IPC_MESSAGE_FORWARD(
136 MediaPlayerHostMsg_RequestRemotePlaybackControl,
137 GetMediaPlayerManager(render_frame_host),
138 BrowserMediaPlayerManager::OnRequestRemotePlaybackControl)
132 #if defined(VIDEO_HOLE) 139 #if defined(VIDEO_HOLE)
133 IPC_MESSAGE_FORWARD(MediaPlayerHostMsg_NotifyExternalSurface, 140 IPC_MESSAGE_FORWARD(MediaPlayerHostMsg_NotifyExternalSurface,
134 GetMediaPlayerManager(render_frame_host), 141 GetMediaPlayerManager(render_frame_host),
135 BrowserMediaPlayerManager::OnNotifyExternalSurface) 142 BrowserMediaPlayerManager::OnNotifyExternalSurface)
136 #endif // defined(VIDEO_HOLE) 143 #endif // defined(VIDEO_HOLE)
137 IPC_MESSAGE_UNHANDLED(handled = false) 144 IPC_MESSAGE_UNHANDLED(handled = false)
138 IPC_END_MESSAGE_MAP() 145 IPC_END_MESSAGE_MAP()
139 return handled; 146 return handled;
140 } 147 }
141 148
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 iter != media_player_managers_.end(); ++iter) { 204 iter != media_player_managers_.end(); ++iter) {
198 BrowserMediaPlayerManager* manager = iter->second; 205 BrowserMediaPlayerManager* manager = iter->second;
199 manager->OnFrameInfoUpdated(); 206 manager->OnFrameInfoUpdated();
200 } 207 }
201 } 208 }
202 #endif // defined(VIDEO_HOLE) 209 #endif // defined(VIDEO_HOLE)
203 210
204 #endif // defined(OS_ANDROID) 211 #endif // defined(OS_ANDROID)
205 212
206 } // namespace content 213 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/media/android/browser_media_player_manager.cc ('k') | content/child/blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698