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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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/data_reduction_proxy/core/common/data_reduction_proxy_heade
rs.h" | 60 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_heade
rs.h" |
| 61 #include "components/dom_distiller/content/renderer/distillability_agent.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" |
70 #include "components/signin/core/common/profile_management_switches.h" | 71 #include "components/signin/core/common/profile_management_switches.h" |
(...skipping 452 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 // Create DistillabilityAgent to send distillability updates to |
| 535 // DistillabilityDriver in the browser process. |
| 536 new dom_distiller::DistillabilityAgent(render_frame); |
| 537 |
533 PasswordAutofillAgent* password_autofill_agent = | 538 PasswordAutofillAgent* password_autofill_agent = |
534 new PasswordAutofillAgent(render_frame); | 539 new PasswordAutofillAgent(render_frame); |
535 PasswordGenerationAgent* password_generation_agent = | 540 PasswordGenerationAgent* password_generation_agent = |
536 new PasswordGenerationAgent(render_frame, password_autofill_agent); | 541 new PasswordGenerationAgent(render_frame, password_autofill_agent); |
537 new AutofillAgent(render_frame, password_autofill_agent, | 542 new AutofillAgent(render_frame, password_autofill_agent, |
538 password_generation_agent); | 543 password_generation_agent); |
539 } | 544 } |
540 | 545 |
541 void ChromeContentRendererClient::RenderViewCreated( | 546 void ChromeContentRendererClient::RenderViewCreated( |
542 content::RenderView* render_view) { | 547 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 | 1481 // chrome.system.network.getNetworkInterfaces provides the same |
1477 // information. Also, the enforcement of sending and binding UDP is already done | 1482 // information. Also, the enforcement of sending and binding UDP is already done |
1478 // by chrome extension permission model. | 1483 // by chrome extension permission model. |
1479 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() { | 1484 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() { |
1480 #if defined(ENABLE_EXTENSIONS) | 1485 #if defined(ENABLE_EXTENSIONS) |
1481 return !IsStandaloneExtensionProcess(); | 1486 return !IsStandaloneExtensionProcess(); |
1482 #else | 1487 #else |
1483 return true; | 1488 return true; |
1484 #endif | 1489 #endif |
1485 } | 1490 } |
OLD | NEW |