Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(379)

Side by Side Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 644123002: Componentize renderer side of DNS prefetching. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 20 matching lines...) Expand all
31 #include "chrome/renderer/chrome_render_frame_observer.h" 31 #include "chrome/renderer/chrome_render_frame_observer.h"
32 #include "chrome/renderer/chrome_render_process_observer.h" 32 #include "chrome/renderer/chrome_render_process_observer.h"
33 #include "chrome/renderer/chrome_render_view_observer.h" 33 #include "chrome/renderer/chrome_render_view_observer.h"
34 #include "chrome/renderer/content_settings_observer.h" 34 #include "chrome/renderer/content_settings_observer.h"
35 #include "chrome/renderer/external_extension.h" 35 #include "chrome/renderer/external_extension.h"
36 #include "chrome/renderer/loadtimes_extension_bindings.h" 36 #include "chrome/renderer/loadtimes_extension_bindings.h"
37 #include "chrome/renderer/media/cast_ipc_dispatcher.h" 37 #include "chrome/renderer/media/cast_ipc_dispatcher.h"
38 #include "chrome/renderer/media/chrome_key_systems.h" 38 #include "chrome/renderer/media/chrome_key_systems.h"
39 #include "chrome/renderer/net/net_error_helper.h" 39 #include "chrome/renderer/net/net_error_helper.h"
40 #include "chrome/renderer/net/prescient_networking_dispatcher.h" 40 #include "chrome/renderer/net/prescient_networking_dispatcher.h"
41 #include "chrome/renderer/net/renderer_net_predictor.h"
42 #include "chrome/renderer/net_benchmarking_extension.h" 41 #include "chrome/renderer/net_benchmarking_extension.h"
43 #include "chrome/renderer/page_load_histograms.h" 42 #include "chrome/renderer/page_load_histograms.h"
44 #include "chrome/renderer/pepper/pepper_helper.h" 43 #include "chrome/renderer/pepper/pepper_helper.h"
45 #include "chrome/renderer/playback_extension.h" 44 #include "chrome/renderer/playback_extension.h"
46 #include "chrome/renderer/plugins/chrome_plugin_placeholder.h" 45 #include "chrome/renderer/plugins/chrome_plugin_placeholder.h"
47 #include "chrome/renderer/plugins/plugin_uma.h" 46 #include "chrome/renderer/plugins/plugin_uma.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"
66 #include "components/dom_distiller/core/url_constants.h" 65 #include "components/dom_distiller/core/url_constants.h"
67 #include "components/nacl/renderer/ppb_nacl_private_impl.h" 66 #include "components/nacl/renderer/ppb_nacl_private_impl.h"
68 #include "components/password_manager/content/renderer/credential_manager_client .h" 67 #include "components/password_manager/content/renderer/credential_manager_client .h"
69 #include "components/pdf/renderer/ppb_pdf_impl.h" 68 #include "components/pdf/renderer/ppb_pdf_impl.h"
70 #include "components/plugins/renderer/mobile_youtube_plugin.h" 69 #include "components/plugins/renderer/mobile_youtube_plugin.h"
70 #include "components/predictor/renderer/renderer_net_predictor.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"
76 #include "content/public/renderer/render_thread.h" 76 #include "content/public/renderer/render_thread.h"
77 #include "content/public/renderer/render_view.h" 77 #include "content/public/renderer/render_view.h"
78 #include "content/public/renderer/render_view_visitor.h" 78 #include "content/public/renderer/render_view_visitor.h"
79 #include "extensions/common/constants.h" 79 #include "extensions/common/constants.h"
80 #include "ipc/ipc_sync_channel.h" 80 #include "ipc/ipc_sync_channel.h"
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 if (!extension_dispatcher_) { 301 if (!extension_dispatcher_) {
302 extension_dispatcher_.reset( 302 extension_dispatcher_.reset(
303 new extensions::Dispatcher(extension_dispatcher_delegate_.get())); 303 new extensions::Dispatcher(extension_dispatcher_delegate_.get()));
304 } 304 }
305 permissions_policy_delegate_.reset( 305 permissions_policy_delegate_.reset(
306 new extensions::RendererPermissionsPolicyDelegate( 306 new extensions::RendererPermissionsPolicyDelegate(
307 extension_dispatcher_.get())); 307 extension_dispatcher_.get()));
308 #endif 308 #endif
309 309
310 prescient_networking_dispatcher_.reset(new PrescientNetworkingDispatcher()); 310 prescient_networking_dispatcher_.reset(new PrescientNetworkingDispatcher());
311 net_predictor_.reset(new RendererNetPredictor()); 311 net_predictor_.reset(new predictor::RendererNetPredictor());
312 #if defined(ENABLE_SPELLCHECK) 312 #if defined(ENABLE_SPELLCHECK)
313 // ChromeRenderViewTest::SetUp() creates a Spellcheck and injects it using 313 // ChromeRenderViewTest::SetUp() creates a Spellcheck and injects it using
314 // SetSpellcheck(). Don't overwrite it. 314 // SetSpellcheck(). Don't overwrite it.
315 if (!spellcheck_) { 315 if (!spellcheck_) {
316 spellcheck_.reset(new SpellCheck()); 316 spellcheck_.reset(new SpellCheck());
317 thread->AddObserver(spellcheck_.get()); 317 thread->AddObserver(spellcheck_.get());
318 } 318 }
319 #endif 319 #endif
320 visited_link_slave_.reset(new visitedlink::VisitedLinkSlave()); 320 visited_link_slave_.reset(new visitedlink::VisitedLinkSlave());
321 #if defined(FULL_SAFE_BROWSING) 321 #if defined(FULL_SAFE_BROWSING)
(...skipping 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1585 content::BrowserPluginDelegate* 1585 content::BrowserPluginDelegate*
1586 ChromeContentRendererClient::CreateBrowserPluginDelegate( 1586 ChromeContentRendererClient::CreateBrowserPluginDelegate(
1587 content::RenderFrame* render_frame, 1587 content::RenderFrame* render_frame,
1588 const std::string& mime_type) { 1588 const std::string& mime_type) {
1589 #if defined(ENABLE_EXTENSIONS) 1589 #if defined(ENABLE_EXTENSIONS)
1590 return new extensions::GuestViewContainer(render_frame, mime_type); 1590 return new extensions::GuestViewContainer(render_frame, mime_type);
1591 #else 1591 #else
1592 return NULL; 1592 return NULL;
1593 #endif 1593 #endif
1594 } 1594 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698