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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
518 if (prerender::PrerenderHelper::IsPrerendering( | 519 if (prerender::PrerenderHelper::IsPrerendering( |
519 render_frame->GetRenderView()->GetMainRenderFrame())) { | 520 render_frame->GetRenderView()->GetMainRenderFrame())) { |
520 new prerender::PrerenderHelper(render_frame); | 521 new prerender::PrerenderHelper(render_frame); |
521 } | 522 } |
522 } | 523 } |
523 | 524 |
524 // Set up a mojo service to test if this page is a distiller page. | 525 // Set up a mojo service to test if this page is a distiller page. |
525 new dom_distiller::DistillerJsRenderFrameObserver( | 526 new dom_distiller::DistillerJsRenderFrameObserver( |
526 render_frame, chrome::ISOLATED_WORLD_ID_CHROME_INTERNAL); | 527 render_frame, chrome::ISOLATED_WORLD_ID_CHROME_INTERNAL); |
527 | 528 |
529 new dom_distiller::DistillabilityAgent(render_frame); | |
mdjones
2015/11/05 01:09:12
Nit: Add a comment describing why this is needed.
wychen
2015/11/12 05:39:28
Done.
| |
530 | |
528 PasswordAutofillAgent* password_autofill_agent = | 531 PasswordAutofillAgent* password_autofill_agent = |
529 new PasswordAutofillAgent(render_frame); | 532 new PasswordAutofillAgent(render_frame); |
530 PasswordGenerationAgent* password_generation_agent = | 533 PasswordGenerationAgent* password_generation_agent = |
531 new PasswordGenerationAgent(render_frame, password_autofill_agent); | 534 new PasswordGenerationAgent(render_frame, password_autofill_agent); |
532 new AutofillAgent(render_frame, password_autofill_agent, | 535 new AutofillAgent(render_frame, password_autofill_agent, |
533 password_generation_agent); | 536 password_generation_agent); |
534 } | 537 } |
535 | 538 |
536 void ChromeContentRendererClient::RenderViewCreated( | 539 void ChromeContentRendererClient::RenderViewCreated( |
537 content::RenderView* render_view) { | 540 content::RenderView* render_view) { |
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1465 // chrome.system.network.getNetworkInterfaces provides the same | 1468 // chrome.system.network.getNetworkInterfaces provides the same |
1466 // information. Also, the enforcement of sending and binding UDP is already done | 1469 // information. Also, the enforcement of sending and binding UDP is already done |
1467 // by chrome extension permission model. | 1470 // by chrome extension permission model. |
1468 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() { | 1471 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() { |
1469 #if defined(ENABLE_EXTENSIONS) | 1472 #if defined(ENABLE_EXTENSIONS) |
1470 return !IsStandaloneExtensionProcess(); | 1473 return !IsStandaloneExtensionProcess(); |
1471 #else | 1474 #else |
1472 return true; | 1475 return true; |
1473 #endif | 1476 #endif |
1474 } | 1477 } |
OLD | NEW |