OLD | NEW |
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 "chrome/renderer/chrome_content_renderer_client.h" | 5 #include "chrome/renderer/chrome_content_renderer_client.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 std::string actual_mime_type; | 288 std::string actual_mime_type; |
289 render_view->Send(new ChromeViewHostMsg_GetPluginInfo( | 289 render_view->Send(new ChromeViewHostMsg_GetPluginInfo( |
290 render_view->GetRoutingID(), GURL(params.url), | 290 render_view->GetRoutingID(), GURL(params.url), |
291 frame->top()->document().url(), params.mimeType.utf8(), | 291 frame->top()->document().url(), params.mimeType.utf8(), |
292 &status, &plugin_info, &actual_mime_type)); | 292 &status, &plugin_info, &actual_mime_type)); |
293 *plugin = CreatePlugin(render_view, frame, params, | 293 *plugin = CreatePlugin(render_view, frame, params, |
294 status, plugin_info, actual_mime_type); | 294 status, plugin_info, actual_mime_type); |
295 return true; | 295 return true; |
296 } | 296 } |
297 | 297 |
| 298 WebPlugin* ChromeContentRendererClient::CreatePluginReplacement( |
| 299 content::RenderView* render_view, |
| 300 const FilePath& plugin_path) { |
| 301 PluginPlaceholder* placeholder = |
| 302 PluginPlaceholder::CreateErrorPlugin(render_view, plugin_path); |
| 303 return placeholder->plugin(); |
| 304 } |
| 305 |
298 webkit_media::WebMediaPlayerImpl* | 306 webkit_media::WebMediaPlayerImpl* |
299 ChromeContentRendererClient::OverrideCreateWebMediaPlayer( | 307 ChromeContentRendererClient::OverrideCreateWebMediaPlayer( |
300 content::RenderView* render_view, | 308 content::RenderView* render_view, |
301 WebKit::WebFrame* frame, | 309 WebKit::WebFrame* frame, |
302 WebKit::WebMediaPlayerClient* client, | 310 WebKit::WebMediaPlayerClient* client, |
303 base::WeakPtr<webkit_media::WebMediaPlayerDelegate> delegate, | 311 base::WeakPtr<webkit_media::WebMediaPlayerDelegate> delegate, |
304 media::FilterCollection* collection, | 312 media::FilterCollection* collection, |
305 WebKit::WebAudioSourceProvider* audio_source_provider, | 313 WebKit::WebAudioSourceProvider* audio_source_provider, |
306 media::MessageLoopFactory* message_loop_factory, | 314 media::MessageLoopFactory* message_loop_factory, |
307 webkit_media::MediaStreamClient* media_stream_client, | 315 webkit_media::MediaStreamClient* media_stream_client, |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
873 bool ChromeContentRendererClient::IsOtherExtensionWithWebRequestInstalled() { | 881 bool ChromeContentRendererClient::IsOtherExtensionWithWebRequestInstalled() { |
874 return extension_dispatcher_->IsOtherExtensionWithWebRequestInstalled(); | 882 return extension_dispatcher_->IsOtherExtensionWithWebRequestInstalled(); |
875 } | 883 } |
876 | 884 |
877 void ChromeContentRendererClient::RegisterPPAPIInterfaceFactories( | 885 void ChromeContentRendererClient::RegisterPPAPIInterfaceFactories( |
878 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) { | 886 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) { |
879 factory_manager->RegisterFactory(ChromePPAPIInterfaceFactory); | 887 factory_manager->RegisterFactory(ChromePPAPIInterfaceFactory); |
880 } | 888 } |
881 | 889 |
882 } // namespace chrome | 890 } // namespace chrome |
OLD | NEW |