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 19 matching lines...) Expand all Loading... |
30 #include "chrome/renderer/chrome_render_frame_observer.h" | 30 #include "chrome/renderer/chrome_render_frame_observer.h" |
31 #include "chrome/renderer/chrome_render_process_observer.h" | 31 #include "chrome/renderer/chrome_render_process_observer.h" |
32 #include "chrome/renderer/chrome_render_view_observer.h" | 32 #include "chrome/renderer/chrome_render_view_observer.h" |
33 #include "chrome/renderer/content_settings_observer.h" | 33 #include "chrome/renderer/content_settings_observer.h" |
34 #include "chrome/renderer/external_extension.h" | 34 #include "chrome/renderer/external_extension.h" |
35 #include "chrome/renderer/loadtimes_extension_bindings.h" | 35 #include "chrome/renderer/loadtimes_extension_bindings.h" |
36 #include "chrome/renderer/media/cast_ipc_dispatcher.h" | 36 #include "chrome/renderer/media/cast_ipc_dispatcher.h" |
37 #include "chrome/renderer/media/chrome_key_systems.h" | 37 #include "chrome/renderer/media/chrome_key_systems.h" |
38 #include "chrome/renderer/net/net_error_helper.h" | 38 #include "chrome/renderer/net/net_error_helper.h" |
39 #include "chrome/renderer/net/prescient_networking_dispatcher.h" | 39 #include "chrome/renderer/net/prescient_networking_dispatcher.h" |
40 #include "chrome/renderer/net/renderer_net_predictor.h" | |
41 #include "chrome/renderer/net_benchmarking_extension.h" | 40 #include "chrome/renderer/net_benchmarking_extension.h" |
42 #include "chrome/renderer/page_load_histograms.h" | 41 #include "chrome/renderer/page_load_histograms.h" |
43 #include "chrome/renderer/pepper/pepper_helper.h" | 42 #include "chrome/renderer/pepper/pepper_helper.h" |
44 #include "chrome/renderer/playback_extension.h" | 43 #include "chrome/renderer/playback_extension.h" |
45 #include "chrome/renderer/plugins/chrome_plugin_placeholder.h" | 44 #include "chrome/renderer/plugins/chrome_plugin_placeholder.h" |
46 #include "chrome/renderer/plugins/plugin_uma.h" | 45 #include "chrome/renderer/plugins/plugin_uma.h" |
47 #include "chrome/renderer/plugins/shadow_dom_plugin_placeholder.h" | 46 #include "chrome/renderer/plugins/shadow_dom_plugin_placeholder.h" |
48 #include "chrome/renderer/prefetch_helper.h" | 47 #include "chrome/renderer/prefetch_helper.h" |
49 #include "chrome/renderer/prerender/prerender_dispatcher.h" | 48 #include "chrome/renderer/prerender/prerender_dispatcher.h" |
50 #include "chrome/renderer/prerender/prerender_helper.h" | 49 #include "chrome/renderer/prerender/prerender_helper.h" |
51 #include "chrome/renderer/prerender/prerender_media_load_deferrer.h" | 50 #include "chrome/renderer/prerender/prerender_media_load_deferrer.h" |
52 #include "chrome/renderer/prerender/prerenderer_client.h" | 51 #include "chrome/renderer/prerender/prerenderer_client.h" |
53 #include "chrome/renderer/principals_extension_bindings.h" | 52 #include "chrome/renderer/principals_extension_bindings.h" |
54 #include "chrome/renderer/printing/print_web_view_helper.h" | 53 #include "chrome/renderer/printing/print_web_view_helper.h" |
55 #include "chrome/renderer/safe_browsing/malware_dom_details.h" | 54 #include "chrome/renderer/safe_browsing/malware_dom_details.h" |
56 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" | 55 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" |
57 #include "chrome/renderer/searchbox/search_bouncer.h" | 56 #include "chrome/renderer/searchbox/search_bouncer.h" |
58 #include "chrome/renderer/searchbox/searchbox.h" | 57 #include "chrome/renderer/searchbox/searchbox.h" |
59 #include "chrome/renderer/searchbox/searchbox_extension.h" | 58 #include "chrome/renderer/searchbox/searchbox_extension.h" |
60 #include "chrome/renderer/tts_dispatcher.h" | 59 #include "chrome/renderer/tts_dispatcher.h" |
61 #include "chrome/renderer/worker_permission_client_proxy.h" | 60 #include "chrome/renderer/worker_permission_client_proxy.h" |
62 #include "components/autofill/content/renderer/autofill_agent.h" | 61 #include "components/autofill/content/renderer/autofill_agent.h" |
63 #include "components/autofill/content/renderer/password_autofill_agent.h" | 62 #include "components/autofill/content/renderer/password_autofill_agent.h" |
64 #include "components/autofill/content/renderer/password_generation_agent.h" | 63 #include "components/autofill/content/renderer/password_generation_agent.h" |
65 #include "components/content_settings/core/common/content_settings_pattern.h" | 64 #include "components/content_settings/core/common/content_settings_pattern.h" |
| 65 #include "components/dns_prefetch/renderer/renderer_net_predictor.h" |
66 #include "components/dom_distiller/core/url_constants.h" | 66 #include "components/dom_distiller/core/url_constants.h" |
67 #include "components/nacl/renderer/ppb_nacl_private_impl.h" | 67 #include "components/nacl/renderer/ppb_nacl_private_impl.h" |
68 #include "components/password_manager/content/renderer/credential_manager_client
.h" | 68 #include "components/password_manager/content/renderer/credential_manager_client
.h" |
69 #include "components/pdf/renderer/ppb_pdf_impl.h" | 69 #include "components/pdf/renderer/ppb_pdf_impl.h" |
70 #include "components/plugins/renderer/mobile_youtube_plugin.h" | 70 #include "components/plugins/renderer/mobile_youtube_plugin.h" |
71 #include "components/signin/core/common/profile_management_switches.h" | 71 #include "components/signin/core/common/profile_management_switches.h" |
72 #include "components/visitedlink/renderer/visitedlink_slave.h" | 72 #include "components/visitedlink/renderer/visitedlink_slave.h" |
73 #include "components/web_cache/renderer/web_cache_render_process_observer.h" | 73 #include "components/web_cache/renderer/web_cache_render_process_observer.h" |
74 #include "content/public/common/content_constants.h" | 74 #include "content/public/common/content_constants.h" |
75 #include "content/public/renderer/render_frame.h" | 75 #include "content/public/renderer/render_frame.h" |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 if (!extension_dispatcher_) { | 303 if (!extension_dispatcher_) { |
304 extension_dispatcher_.reset( | 304 extension_dispatcher_.reset( |
305 new extensions::Dispatcher(extension_dispatcher_delegate_.get())); | 305 new extensions::Dispatcher(extension_dispatcher_delegate_.get())); |
306 } | 306 } |
307 permissions_policy_delegate_.reset( | 307 permissions_policy_delegate_.reset( |
308 new extensions::RendererPermissionsPolicyDelegate( | 308 new extensions::RendererPermissionsPolicyDelegate( |
309 extension_dispatcher_.get())); | 309 extension_dispatcher_.get())); |
310 #endif | 310 #endif |
311 | 311 |
312 prescient_networking_dispatcher_.reset(new PrescientNetworkingDispatcher()); | 312 prescient_networking_dispatcher_.reset(new PrescientNetworkingDispatcher()); |
313 net_predictor_.reset(new RendererNetPredictor()); | 313 net_predictor_.reset(new dns_prefetch::RendererNetPredictor()); |
314 #if defined(ENABLE_SPELLCHECK) | 314 #if defined(ENABLE_SPELLCHECK) |
315 // ChromeRenderViewTest::SetUp() creates a Spellcheck and injects it using | 315 // ChromeRenderViewTest::SetUp() creates a Spellcheck and injects it using |
316 // SetSpellcheck(). Don't overwrite it. | 316 // SetSpellcheck(). Don't overwrite it. |
317 if (!spellcheck_) { | 317 if (!spellcheck_) { |
318 spellcheck_.reset(new SpellCheck()); | 318 spellcheck_.reset(new SpellCheck()); |
319 thread->AddObserver(spellcheck_.get()); | 319 thread->AddObserver(spellcheck_.get()); |
320 } | 320 } |
321 #endif | 321 #endif |
322 visited_link_slave_.reset(new visitedlink::VisitedLinkSlave()); | 322 visited_link_slave_.reset(new visitedlink::VisitedLinkSlave()); |
323 #if defined(FULL_SAFE_BROWSING) | 323 #if defined(FULL_SAFE_BROWSING) |
(...skipping 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1602 if (mime_type == content::kBrowserPluginMimeType) { | 1602 if (mime_type == content::kBrowserPluginMimeType) { |
1603 return new extensions::ExtensionsGuestViewContainer(render_frame); | 1603 return new extensions::ExtensionsGuestViewContainer(render_frame); |
1604 } else { | 1604 } else { |
1605 return new extensions::MimeHandlerViewContainer( | 1605 return new extensions::MimeHandlerViewContainer( |
1606 render_frame, mime_type, original_url); | 1606 render_frame, mime_type, original_url); |
1607 } | 1607 } |
1608 #else | 1608 #else |
1609 return NULL; | 1609 return NULL; |
1610 #endif | 1610 #endif |
1611 } | 1611 } |
OLD | NEW |