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

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

Issue 9361039: Adds a stub method & classes for those which aren't used in android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 (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 2080 matching lines...) Expand 10 before | Expand all | Expand 10 after
2091 message_loop_factory->GetMessageLoop("GpuVideoDecoder"), 2091 message_loop_factory->GetMessageLoop("GpuVideoDecoder"),
2092 new RendererGpuVideoDecoderFactories( 2092 new RendererGpuVideoDecoderFactories(
2093 gpu_channel_host, context3d->context()->AsWeakPtr()))); 2093 gpu_channel_host, context3d->context()->AsWeakPtr())));
2094 } 2094 }
2095 #endif 2095 #endif
2096 2096
2097 webkit_media::WebMediaPlayerImpl* media_player = 2097 webkit_media::WebMediaPlayerImpl* media_player =
2098 content::GetContentClient()->renderer()->OverrideCreateWebMediaPlayer( 2098 content::GetContentClient()->renderer()->OverrideCreateWebMediaPlayer(
2099 this, frame, client, AsWeakPtr(), collection, audio_source_provider, 2099 this, frame, client, AsWeakPtr(), collection, audio_source_provider,
2100 message_loop_factory, media_stream_impl_.get(), render_media_log); 2100 message_loop_factory, media_stream_impl_.get(), render_media_log);
2101 #if defined(OS_ANDROID)
2102 // TODO(qinmin): Implement for android.
2103 // http://crbug.com/113218
2104 #else
2101 if (!media_player) { 2105 if (!media_player) {
2102 media_player = new webkit_media::WebMediaPlayerImpl( 2106 media_player = new webkit_media::WebMediaPlayerImpl(
2103 frame, client, AsWeakPtr(), collection, audio_source_provider, 2107 frame, client, AsWeakPtr(), collection, audio_source_provider,
2104 message_loop_factory, media_stream_impl_.get(), render_media_log); 2108 message_loop_factory, media_stream_impl_.get(), render_media_log);
2105 } 2109 }
2110 #endif
2106 return media_player; 2111 return media_player;
2107 } 2112 }
2108 2113
2109 WebApplicationCacheHost* RenderViewImpl::createApplicationCacheHost( 2114 WebApplicationCacheHost* RenderViewImpl::createApplicationCacheHost(
2110 WebFrame* frame, WebApplicationCacheHostClient* client) { 2115 WebFrame* frame, WebApplicationCacheHostClient* client) {
2111 if (!frame || !frame->view()) 2116 if (!frame || !frame->view())
2112 return NULL; 2117 return NULL;
2113 return new RendererWebApplicationCacheHostImpl( 2118 return new RendererWebApplicationCacheHostImpl(
2114 FromWebView(frame->view()), client, 2119 FromWebView(frame->view()), client,
2115 RenderThreadImpl::current()->appcache_dispatcher()->backend_proxy()); 2120 RenderThreadImpl::current()->appcache_dispatcher()->backend_proxy());
(...skipping 2876 matching lines...) Expand 10 before | Expand all | Expand 10 after
4992 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { 4997 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
4993 return !!RenderThreadImpl::current()->compositor_thread(); 4998 return !!RenderThreadImpl::current()->compositor_thread();
4994 } 4999 }
4995 5000
4996 void RenderViewImpl::OnJavaBridgeInit() { 5001 void RenderViewImpl::OnJavaBridgeInit() {
4997 DCHECK(!java_bridge_dispatcher_.get()); 5002 DCHECK(!java_bridge_dispatcher_.get());
4998 #if defined(ENABLE_JAVA_BRIDGE) 5003 #if defined(ENABLE_JAVA_BRIDGE)
4999 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this)); 5004 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this));
5000 #endif 5005 #endif
5001 } 5006 }
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698