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

Side by Side Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 107183002: Move more of the plugin code in the renderer to use RenderFrame instead of RenderView. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 7 years 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 | « chrome/common/render_messages.h ('k') | chrome/renderer/plugins/chrome_plugin_placeholder.cc » ('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 "chrome/renderer/chrome_content_renderer_client.h" 5 #include "chrome/renderer/chrome_content_renderer_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/debug/crash_logging.h" 8 #include "base/debug/crash_logging.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 for (size_t i = 0; i < arraysize(perms); ++i) { 446 for (size_t i = 0; i < arraysize(perms); ++i) {
447 if (extension->HasAPIPermission(perms[i])) 447 if (extension->HasAPIPermission(perms[i]))
448 return false; 448 return false;
449 } 449 }
450 } 450 }
451 } 451 }
452 452
453 ChromeViewHostMsg_GetPluginInfo_Output output; 453 ChromeViewHostMsg_GetPluginInfo_Output output;
454 #if defined(ENABLE_PLUGINS) 454 #if defined(ENABLE_PLUGINS)
455 render_view->Send(new ChromeViewHostMsg_GetPluginInfo( 455 render_view->Send(new ChromeViewHostMsg_GetPluginInfo(
456 render_view->GetRoutingID(), GURL(params.url), 456 render_frame->GetRoutingID(), GURL(params.url),
457 frame->top()->document().url(), orig_mime_type, &output)); 457 frame->top()->document().url(), orig_mime_type, &output));
458 #else 458 #else
459 output.status.value = ChromeViewHostMsg_GetPluginInfo_Status::kNotFound; 459 output.status.value = ChromeViewHostMsg_GetPluginInfo_Status::kNotFound;
460 #endif 460 #endif
461 *plugin = CreatePlugin(render_view, render_frame, frame, params, output); 461 *plugin = CreatePlugin(render_view, render_frame, frame, params, output);
462 return true; 462 return true;
463 } 463 }
464 464
465 WebPlugin* ChromeContentRendererClient::CreatePluginReplacement( 465 WebPlugin* ChromeContentRendererClient::CreatePluginReplacement(
466 content::RenderView* render_view, 466 content::RenderView* render_view,
(...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after
1391 CommandLine* command_line = CommandLine::ForCurrentProcess(); 1391 CommandLine* command_line = CommandLine::ForCurrentProcess();
1392 return !command_line->HasSwitch(switches::kExtensionProcess); 1392 return !command_line->HasSwitch(switches::kExtensionProcess);
1393 } 1393 }
1394 1394
1395 blink::WebWorkerPermissionClientProxy* 1395 blink::WebWorkerPermissionClientProxy*
1396 ChromeContentRendererClient::CreateWorkerPermissionClientProxy( 1396 ChromeContentRendererClient::CreateWorkerPermissionClientProxy(
1397 content::RenderView* render_view, 1397 content::RenderView* render_view,
1398 blink::WebFrame* frame) { 1398 blink::WebFrame* frame) {
1399 return new WorkerPermissionClientProxy(render_view, frame); 1399 return new WorkerPermissionClientProxy(render_view, frame);
1400 } 1400 }
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/plugins/chrome_plugin_placeholder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698