| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 #include "chrome/renderer/prerender/prerender_media_load_deferrer.h" | 56 #include "chrome/renderer/prerender/prerender_media_load_deferrer.h" |
| 57 #include "chrome/renderer/prerender/prerenderer_client.h" | 57 #include "chrome/renderer/prerender/prerenderer_client.h" |
| 58 #include "chrome/renderer/printing/print_web_view_helper.h" | 58 #include "chrome/renderer/printing/print_web_view_helper.h" |
| 59 #include "chrome/renderer/safe_browsing/malware_dom_details.h" | 59 #include "chrome/renderer/safe_browsing/malware_dom_details.h" |
| 60 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" | 60 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" |
| 61 #include "chrome/renderer/searchbox/search_bouncer.h" | 61 #include "chrome/renderer/searchbox/search_bouncer.h" |
| 62 #include "chrome/renderer/searchbox/searchbox.h" | 62 #include "chrome/renderer/searchbox/searchbox.h" |
| 63 #include "chrome/renderer/searchbox/searchbox_extension.h" | 63 #include "chrome/renderer/searchbox/searchbox_extension.h" |
| 64 #include "chrome/renderer/tts_dispatcher.h" | 64 #include "chrome/renderer/tts_dispatcher.h" |
| 65 #include "chrome/renderer/validation_message_agent.h" | 65 #include "chrome/renderer/validation_message_agent.h" |
| 66 #include "chrome/renderer/worker_permission_client_proxy.h" |
| 66 #include "components/autofill/content/renderer/autofill_agent.h" | 67 #include "components/autofill/content/renderer/autofill_agent.h" |
| 67 #include "components/autofill/content/renderer/password_autofill_agent.h" | 68 #include "components/autofill/content/renderer/password_autofill_agent.h" |
| 68 #include "components/autofill/content/renderer/password_generation_agent.h" | 69 #include "components/autofill/content/renderer/password_generation_agent.h" |
| 69 #include "components/autofill/core/common/password_generation_util.h" | 70 #include "components/autofill/core/common/password_generation_util.h" |
| 70 #include "components/plugins/renderer/mobile_youtube_plugin.h" | 71 #include "components/plugins/renderer/mobile_youtube_plugin.h" |
| 71 #include "components/visitedlink/renderer/visitedlink_slave.h" | 72 #include "components/visitedlink/renderer/visitedlink_slave.h" |
| 72 #include "content/public/common/content_constants.h" | 73 #include "content/public/common/content_constants.h" |
| 73 #include "content/public/renderer/render_thread.h" | 74 #include "content/public/renderer/render_thread.h" |
| 74 #include "content/public/renderer/render_view.h" | 75 #include "content/public/renderer/render_view.h" |
| 75 #include "content/public/renderer/render_view_visitor.h" | 76 #include "content/public/renderer/render_view_visitor.h" |
| (...skipping 1310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1386 bool ChromeContentRendererClient::ShouldEnableSiteIsolationPolicy() const { | 1387 bool ChromeContentRendererClient::ShouldEnableSiteIsolationPolicy() const { |
| 1387 // SiteIsolationPolicy is off by default. We would like to activate cross-site | 1388 // SiteIsolationPolicy is off by default. We would like to activate cross-site |
| 1388 // document blocking (for UMA data collection) for normal renderer processes | 1389 // document blocking (for UMA data collection) for normal renderer processes |
| 1389 // running a normal web page from the Internet. We only turn on | 1390 // running a normal web page from the Internet. We only turn on |
| 1390 // SiteIsolationPolicy for a renderer process that does not have the extension | 1391 // SiteIsolationPolicy for a renderer process that does not have the extension |
| 1391 // flag on. | 1392 // flag on. |
| 1392 CommandLine* command_line = CommandLine::ForCurrentProcess(); | 1393 CommandLine* command_line = CommandLine::ForCurrentProcess(); |
| 1393 return !command_line->HasSwitch(switches::kExtensionProcess); | 1394 return !command_line->HasSwitch(switches::kExtensionProcess); |
| 1394 } | 1395 } |
| 1395 | 1396 |
| 1397 WebKit::WebWorkerPermissionClientProxy* |
| 1398 ChromeContentRendererClient::CreateWorkerPermissionClientProxy( |
| 1399 content::RenderView* render_view, |
| 1400 WebKit::WebFrame* frame) { |
| 1401 return new WorkerPermissionClientProxy(render_view, frame); |
| 1402 } |
| 1403 |
| 1396 } // namespace chrome | 1404 } // namespace chrome |
| OLD | NEW |