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

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

Issue 10832219: Revert 150654 - Browser Plugin: New Implementation (Renderer Side) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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/renderer/browser_plugin/mock_browser_plugin_manager.cc ('k') | ipc/ipc_message_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 #include "content/public/common/content_constants.h" 48 #include "content/public/common/content_constants.h"
49 #include "content/public/common/content_switches.h" 49 #include "content/public/common/content_switches.h"
50 #include "content/public/common/context_menu_params.h" 50 #include "content/public/common/context_menu_params.h"
51 #include "content/public/common/file_chooser_params.h" 51 #include "content/public/common/file_chooser_params.h"
52 #include "content/public/common/url_constants.h" 52 #include "content/public/common/url_constants.h"
53 #include "content/public/renderer/content_renderer_client.h" 53 #include "content/public/renderer/content_renderer_client.h"
54 #include "content/public/renderer/document_state.h" 54 #include "content/public/renderer/document_state.h"
55 #include "content/public/renderer/navigation_state.h" 55 #include "content/public/renderer/navigation_state.h"
56 #include "content/public/renderer/render_view_observer.h" 56 #include "content/public/renderer/render_view_observer.h"
57 #include "content/public/renderer/render_view_visitor.h" 57 #include "content/public/renderer/render_view_visitor.h"
58 #include "content/renderer/browser_plugin/browser_plugin.h"
59 #include "content/renderer/browser_plugin/browser_plugin_manager.h"
60 #include "content/renderer/browser_plugin/old/old_browser_plugin.h" 58 #include "content/renderer/browser_plugin/old/old_browser_plugin.h"
61 #include "content/renderer/browser_plugin/old/browser_plugin_channel_manager.h" 59 #include "content/renderer/browser_plugin/old/browser_plugin_channel_manager.h"
62 #include "content/renderer/browser_plugin/old/browser_plugin_constants.h" 60 #include "content/renderer/browser_plugin/old/browser_plugin_constants.h"
63 #include "content/renderer/browser_plugin/old/guest_to_embedder_channel.h" 61 #include "content/renderer/browser_plugin/old/guest_to_embedder_channel.h"
64 #include "content/renderer/device_orientation_dispatcher.h" 62 #include "content/renderer/device_orientation_dispatcher.h"
65 #include "content/renderer/devtools_agent.h" 63 #include "content/renderer/devtools_agent.h"
66 #include "content/renderer/dom_automation_controller.h" 64 #include "content/renderer/dom_automation_controller.h"
67 #include "content/renderer/dom_storage/webstoragenamespace_impl.h" 65 #include "content/renderer/dom_storage/webstoragenamespace_impl.h"
68 #include "content/renderer/external_popup_menu.h" 66 #include "content/renderer/external_popup_menu.h"
69 #include "content/renderer/geolocation_dispatcher.h" 67 #include "content/renderer/geolocation_dispatcher.h"
(...skipping 2241 matching lines...) Expand 10 before | Expand all | Expand 10 after
2311 // WebKit::WebFrameClient ----------------------------------------------------- 2309 // WebKit::WebFrameClient -----------------------------------------------------
2312 2310
2313 WebPlugin* RenderViewImpl::createPlugin(WebFrame* frame, 2311 WebPlugin* RenderViewImpl::createPlugin(WebFrame* frame,
2314 const WebPluginParams& params) { 2312 const WebPluginParams& params) {
2315 WebPlugin* plugin = NULL; 2313 WebPlugin* plugin = NULL;
2316 if (content::GetContentClient()->renderer()->OverrideCreatePlugin( 2314 if (content::GetContentClient()->renderer()->OverrideCreatePlugin(
2317 this, frame, params, &plugin)) { 2315 this, frame, params, &plugin)) {
2318 return plugin; 2316 return plugin;
2319 } 2317 }
2320 2318
2321 // TODO(fsamuel): Remove this once upstreaming of the new browser plugin is
2322 // complete.
2323 if (UTF16ToASCII(params.mimeType) == content::kBrowserPluginNewMimeType) {
2324 return content::BrowserPluginManager::Get()->
2325 CreateBrowserPlugin(this, frame, params);
2326 }
2327
2328 if (UTF16ToASCII(params.mimeType) == content::kBrowserPluginMimeType) 2319 if (UTF16ToASCII(params.mimeType) == content::kBrowserPluginMimeType)
2329 return content::old::BrowserPlugin::Create(this, frame, params); 2320 return content::old::BrowserPlugin::Create(this, frame, params);
2330 2321
2331 webkit::WebPluginInfo info; 2322 webkit::WebPluginInfo info;
2332 std::string mime_type; 2323 std::string mime_type;
2333 bool found = GetPluginInfo(params.url, frame->top()->document().url(), 2324 bool found = GetPluginInfo(params.url, frame->top()->document().url(),
2334 params.mimeType.utf8(), &info, &mime_type); 2325 params.mimeType.utf8(), &info, &mime_type);
2335 if (!found) 2326 if (!found)
2336 return NULL; 2327 return NULL;
2337 2328
(...skipping 3445 matching lines...) Expand 10 before | Expand all | Expand 10 after
5783 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { 5774 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
5784 return !!RenderThreadImpl::current()->compositor_thread(); 5775 return !!RenderThreadImpl::current()->compositor_thread();
5785 } 5776 }
5786 5777
5787 void RenderViewImpl::OnJavaBridgeInit() { 5778 void RenderViewImpl::OnJavaBridgeInit() {
5788 DCHECK(!java_bridge_dispatcher_); 5779 DCHECK(!java_bridge_dispatcher_);
5789 #if defined(ENABLE_JAVA_BRIDGE) 5780 #if defined(ENABLE_JAVA_BRIDGE)
5790 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); 5781 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this);
5791 #endif 5782 #endif
5792 } 5783 }
OLDNEW
« no previous file with comments | « content/renderer/browser_plugin/mock_browser_plugin_manager.cc ('k') | ipc/ipc_message_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698