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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 10808089: Merge 146897 - WebMediaPlayerImpl needs to own the audio source provider. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1180/src/
Patch Set: Created 8 years, 5 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
« no previous file with comments | « content/public/renderer/content_renderer_client.cc ('k') | webkit/media/webmediaplayer_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 2364 matching lines...) Expand 10 before | Expand all | Expand 10 after
2375 collection->AddVideoDecoder(new media::GpuVideoDecoder( 2375 collection->AddVideoDecoder(new media::GpuVideoDecoder(
2376 message_loop_factory->GetMessageLoop("GpuVideoDecoder"), 2376 message_loop_factory->GetMessageLoop("GpuVideoDecoder"),
2377 factories_loop, 2377 factories_loop,
2378 new RendererGpuVideoDecoderFactories( 2378 new RendererGpuVideoDecoderFactories(
2379 gpu_channel_host, factories_loop, context3d))); 2379 gpu_channel_host, factories_loop, context3d)));
2380 } 2380 }
2381 2381
2382 WebMediaPlayer* media_player = 2382 WebMediaPlayer* media_player =
2383 content::GetContentClient()->renderer()->OverrideCreateWebMediaPlayer( 2383 content::GetContentClient()->renderer()->OverrideCreateWebMediaPlayer(
2384 this, frame, client, AsWeakPtr(), collection, audio_source_provider, 2384 this, frame, client, AsWeakPtr(), collection, audio_source_provider,
2385 message_loop_factory, media_stream_impl_, render_media_log); 2385 audio_source_provider, message_loop_factory, media_stream_impl_,
2386 render_media_log);
2386 if (!media_player) { 2387 if (!media_player) {
2387 media_player = new webkit_media::WebMediaPlayerImpl( 2388 media_player = new webkit_media::WebMediaPlayerImpl(
2388 frame, client, AsWeakPtr(), collection, audio_source_provider, 2389 frame, client, AsWeakPtr(), collection, audio_source_provider,
2389 message_loop_factory, media_stream_impl_, render_media_log); 2390 audio_source_provider, message_loop_factory, media_stream_impl_,
2391 render_media_log);
2390 } 2392 }
2391 return media_player; 2393 return media_player;
2392 } 2394 }
2393 2395
2394 WebApplicationCacheHost* RenderViewImpl::createApplicationCacheHost( 2396 WebApplicationCacheHost* RenderViewImpl::createApplicationCacheHost(
2395 WebFrame* frame, WebApplicationCacheHostClient* client) { 2397 WebFrame* frame, WebApplicationCacheHostClient* client) {
2396 if (!frame || !frame->view()) 2398 if (!frame || !frame->view())
2397 return NULL; 2399 return NULL;
2398 return new RendererWebApplicationCacheHostImpl( 2400 return new RendererWebApplicationCacheHostImpl(
2399 FromWebView(frame->view()), client, 2401 FromWebView(frame->view()), client,
(...skipping 3269 matching lines...) Expand 10 before | Expand all | Expand 10 after
5669 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { 5671 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
5670 return !!RenderThreadImpl::current()->compositor_thread(); 5672 return !!RenderThreadImpl::current()->compositor_thread();
5671 } 5673 }
5672 5674
5673 void RenderViewImpl::OnJavaBridgeInit() { 5675 void RenderViewImpl::OnJavaBridgeInit() {
5674 DCHECK(!java_bridge_dispatcher_); 5676 DCHECK(!java_bridge_dispatcher_);
5675 #if defined(ENABLE_JAVA_BRIDGE) 5677 #if defined(ENABLE_JAVA_BRIDGE)
5676 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); 5678 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this);
5677 #endif 5679 #endif
5678 } 5680 }
OLDNEW
« no previous file with comments | « content/public/renderer/content_renderer_client.cc ('k') | webkit/media/webmediaplayer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698