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

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

Issue 848303005: Renamed the dns_prefetch component to network_predictor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 10 months 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
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.h ('k') | chromecast/browser/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" 52 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h"
53 #include "chrome/renderer/searchbox/search_bouncer.h" 53 #include "chrome/renderer/searchbox/search_bouncer.h"
54 #include "chrome/renderer/searchbox/searchbox.h" 54 #include "chrome/renderer/searchbox/searchbox.h"
55 #include "chrome/renderer/searchbox/searchbox_extension.h" 55 #include "chrome/renderer/searchbox/searchbox_extension.h"
56 #include "chrome/renderer/tts_dispatcher.h" 56 #include "chrome/renderer/tts_dispatcher.h"
57 #include "chrome/renderer/worker_permission_client_proxy.h" 57 #include "chrome/renderer/worker_permission_client_proxy.h"
58 #include "components/autofill/content/renderer/autofill_agent.h" 58 #include "components/autofill/content/renderer/autofill_agent.h"
59 #include "components/autofill/content/renderer/password_autofill_agent.h" 59 #include "components/autofill/content/renderer/password_autofill_agent.h"
60 #include "components/autofill/content/renderer/password_generation_agent.h" 60 #include "components/autofill/content/renderer/password_generation_agent.h"
61 #include "components/content_settings/core/common/content_settings_pattern.h" 61 #include "components/content_settings/core/common/content_settings_pattern.h"
62 #include "components/dns_prefetch/renderer/prescient_networking_dispatcher.h"
63 #include "components/dom_distiller/core/url_constants.h" 62 #include "components/dom_distiller/core/url_constants.h"
64 #include "components/nacl/renderer/ppb_nacl_private_impl.h" 63 #include "components/nacl/renderer/ppb_nacl_private_impl.h"
64 #include "components/network_hints/renderer/prescient_networking_dispatcher.h"
65 #include "components/password_manager/content/renderer/credential_manager_client .h" 65 #include "components/password_manager/content/renderer/credential_manager_client .h"
66 #include "components/pdf/renderer/ppb_pdf_impl.h" 66 #include "components/pdf/renderer/ppb_pdf_impl.h"
67 #include "components/plugins/renderer/mobile_youtube_plugin.h" 67 #include "components/plugins/renderer/mobile_youtube_plugin.h"
68 #include "components/signin/core/common/profile_management_switches.h" 68 #include "components/signin/core/common/profile_management_switches.h"
69 #include "components/visitedlink/renderer/visitedlink_slave.h" 69 #include "components/visitedlink/renderer/visitedlink_slave.h"
70 #include "components/web_cache/renderer/web_cache_render_process_observer.h" 70 #include "components/web_cache/renderer/web_cache_render_process_observer.h"
71 #include "content/public/common/content_constants.h" 71 #include "content/public/common/content_constants.h"
72 #include "content/public/renderer/plugin_instance_throttler.h" 72 #include "content/public/renderer/plugin_instance_throttler.h"
73 #include "content/public/renderer/render_frame.h" 73 #include "content/public/renderer/render_frame.h"
74 #include "content/public/renderer/render_thread.h" 74 #include "content/public/renderer/render_thread.h"
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
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( 312 prescient_networking_dispatcher_.reset(
313 new dns_prefetch::PrescientNetworkingDispatcher()); 313 new network_hints::PrescientNetworkingDispatcher());
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 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after
1591 if (mime_type == content::kBrowserPluginMimeType) { 1591 if (mime_type == content::kBrowserPluginMimeType) {
1592 return new extensions::ExtensionsGuestViewContainer(render_frame); 1592 return new extensions::ExtensionsGuestViewContainer(render_frame);
1593 } else { 1593 } else {
1594 return new extensions::MimeHandlerViewContainer( 1594 return new extensions::MimeHandlerViewContainer(
1595 render_frame, mime_type, original_url); 1595 render_frame, mime_type, original_url);
1596 } 1596 }
1597 #else 1597 #else
1598 return NULL; 1598 return NULL;
1599 #endif 1599 #endif
1600 } 1600 }
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.h ('k') | chromecast/browser/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698