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 "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 Loading... |
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 Loading... |
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 } |
OLD | NEW |