| 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/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 #include "chrome/renderer/safe_browsing/threat_dom_details.h" | 50 #include "chrome/renderer/safe_browsing/threat_dom_details.h" |
| 51 #include "chrome/renderer/searchbox/search_bouncer.h" | 51 #include "chrome/renderer/searchbox/search_bouncer.h" |
| 52 #include "chrome/renderer/searchbox/searchbox.h" | 52 #include "chrome/renderer/searchbox/searchbox.h" |
| 53 #include "chrome/renderer/searchbox/searchbox_extension.h" | 53 #include "chrome/renderer/searchbox/searchbox_extension.h" |
| 54 #include "chrome/renderer/tts_dispatcher.h" | 54 #include "chrome/renderer/tts_dispatcher.h" |
| 55 #include "chrome/renderer/worker_content_settings_client_proxy.h" | 55 #include "chrome/renderer/worker_content_settings_client_proxy.h" |
| 56 #include "components/autofill/content/renderer/autofill_agent.h" | 56 #include "components/autofill/content/renderer/autofill_agent.h" |
| 57 #include "components/autofill/content/renderer/password_autofill_agent.h" | 57 #include "components/autofill/content/renderer/password_autofill_agent.h" |
| 58 #include "components/autofill/content/renderer/password_generation_agent.h" | 58 #include "components/autofill/content/renderer/password_generation_agent.h" |
| 59 #include "components/content_settings/core/common/content_settings_pattern.h" | 59 #include "components/content_settings/core/common/content_settings_pattern.h" |
| 60 #include "components/contextual_search/overlay_js_render_frame_observer.h" |
| 60 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_heade
rs.h" | 61 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_heade
rs.h" |
| 61 #include "components/dom_distiller/content/renderer/distiller_js_render_frame_ob
server.h" | 62 #include "components/dom_distiller/content/renderer/distiller_js_render_frame_ob
server.h" |
| 62 #include "components/dom_distiller/core/url_constants.h" | 63 #include "components/dom_distiller/core/url_constants.h" |
| 63 #include "components/nacl/renderer/ppb_nacl_private.h" | 64 #include "components/nacl/renderer/ppb_nacl_private.h" |
| 64 #include "components/nacl/renderer/ppb_nacl_private_impl.h" | 65 #include "components/nacl/renderer/ppb_nacl_private_impl.h" |
| 65 #include "components/network_hints/renderer/prescient_networking_dispatcher.h" | 66 #include "components/network_hints/renderer/prescient_networking_dispatcher.h" |
| 66 #include "components/page_load_metrics/renderer/metrics_render_frame_observer.h" | 67 #include "components/page_load_metrics/renderer/metrics_render_frame_observer.h" |
| 67 #include "components/password_manager/content/renderer/credential_manager_client
.h" | 68 #include "components/password_manager/content/renderer/credential_manager_client
.h" |
| 68 #include "components/pdf/renderer/pepper_pdf_host.h" | 69 #include "components/pdf/renderer/pepper_pdf_host.h" |
| 69 #include "components/plugins/renderer/mobile_youtube_plugin.h" | 70 #include "components/plugins/renderer/mobile_youtube_plugin.h" |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 if (prerender::PrerenderHelper::IsPrerendering( | 524 if (prerender::PrerenderHelper::IsPrerendering( |
| 524 render_frame->GetRenderView()->GetMainRenderFrame())) { | 525 render_frame->GetRenderView()->GetMainRenderFrame())) { |
| 525 new prerender::PrerenderHelper(render_frame); | 526 new prerender::PrerenderHelper(render_frame); |
| 526 } | 527 } |
| 527 } | 528 } |
| 528 | 529 |
| 529 // Set up a mojo service to test if this page is a distiller page. | 530 // Set up a mojo service to test if this page is a distiller page. |
| 530 new dom_distiller::DistillerJsRenderFrameObserver( | 531 new dom_distiller::DistillerJsRenderFrameObserver( |
| 531 render_frame, chrome::ISOLATED_WORLD_ID_CHROME_INTERNAL); | 532 render_frame, chrome::ISOLATED_WORLD_ID_CHROME_INTERNAL); |
| 532 | 533 |
| 534 // Set up a mojo service to test if this page is a contextual search page. |
| 535 new contextual_search::OverlayJsRenderFrameObserver(render_frame); |
| 536 |
| 533 PasswordAutofillAgent* password_autofill_agent = | 537 PasswordAutofillAgent* password_autofill_agent = |
| 534 new PasswordAutofillAgent(render_frame); | 538 new PasswordAutofillAgent(render_frame); |
| 535 PasswordGenerationAgent* password_generation_agent = | 539 PasswordGenerationAgent* password_generation_agent = |
| 536 new PasswordGenerationAgent(render_frame, password_autofill_agent); | 540 new PasswordGenerationAgent(render_frame, password_autofill_agent); |
| 537 new AutofillAgent(render_frame, password_autofill_agent, | 541 new AutofillAgent(render_frame, password_autofill_agent, |
| 538 password_generation_agent); | 542 password_generation_agent); |
| 539 } | 543 } |
| 540 | 544 |
| 541 void ChromeContentRendererClient::RenderViewCreated( | 545 void ChromeContentRendererClient::RenderViewCreated( |
| 542 content::RenderView* render_view) { | 546 content::RenderView* render_view) { |
| (...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1476 // chrome.system.network.getNetworkInterfaces provides the same | 1480 // chrome.system.network.getNetworkInterfaces provides the same |
| 1477 // information. Also, the enforcement of sending and binding UDP is already done | 1481 // information. Also, the enforcement of sending and binding UDP is already done |
| 1478 // by chrome extension permission model. | 1482 // by chrome extension permission model. |
| 1479 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() { | 1483 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() { |
| 1480 #if defined(ENABLE_EXTENSIONS) | 1484 #if defined(ENABLE_EXTENSIONS) |
| 1481 return !IsStandaloneExtensionProcess(); | 1485 return !IsStandaloneExtensionProcess(); |
| 1482 #else | 1486 #else |
| 1483 return true; | 1487 return true; |
| 1484 #endif | 1488 #endif |
| 1485 } | 1489 } |
| OLD | NEW |