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

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

Issue 1414343007: Collect threat details for phishing and UwS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 5 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 28 matching lines...) Expand all
39 #include "chrome/renderer/net/net_error_helper.h" 39 #include "chrome/renderer/net/net_error_helper.h"
40 #include "chrome/renderer/net_benchmarking_extension.h" 40 #include "chrome/renderer/net_benchmarking_extension.h"
41 #include "chrome/renderer/page_load_histograms.h" 41 #include "chrome/renderer/page_load_histograms.h"
42 #include "chrome/renderer/pepper/pepper_helper.h" 42 #include "chrome/renderer/pepper/pepper_helper.h"
43 #include "chrome/renderer/plugins/non_loadable_plugin_placeholder.h" 43 #include "chrome/renderer/plugins/non_loadable_plugin_placeholder.h"
44 #include "chrome/renderer/plugins/plugin_preroller.h" 44 #include "chrome/renderer/plugins/plugin_preroller.h"
45 #include "chrome/renderer/plugins/plugin_uma.h" 45 #include "chrome/renderer/plugins/plugin_uma.h"
46 #include "chrome/renderer/prerender/prerender_dispatcher.h" 46 #include "chrome/renderer/prerender/prerender_dispatcher.h"
47 #include "chrome/renderer/prerender/prerender_helper.h" 47 #include "chrome/renderer/prerender/prerender_helper.h"
48 #include "chrome/renderer/prerender/prerenderer_client.h" 48 #include "chrome/renderer/prerender/prerenderer_client.h"
49 #include "chrome/renderer/safe_browsing/malware_dom_details.h"
50 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" 49 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h"
50 #include "chrome/renderer/safe_browsing/threat_dom_details.h"
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"
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 new printing::PrintWebViewHelper( 543 new printing::PrintWebViewHelper(
544 render_view, 544 render_view,
545 scoped_ptr<printing::PrintWebViewHelper::Delegate>( 545 scoped_ptr<printing::PrintWebViewHelper::Delegate>(
546 new ChromePrintWebViewHelperDelegate())); 546 new ChromePrintWebViewHelperDelegate()));
547 #endif 547 #endif
548 #if defined(ENABLE_SPELLCHECK) 548 #if defined(ENABLE_SPELLCHECK)
549 new SpellCheckProvider(render_view, spellcheck_.get()); 549 new SpellCheckProvider(render_view, spellcheck_.get());
550 #endif 550 #endif
551 new prerender::PrerendererClient(render_view); 551 new prerender::PrerendererClient(render_view);
552 #if defined(FULL_SAFE_BROWSING) 552 #if defined(FULL_SAFE_BROWSING)
553 safe_browsing::MalwareDOMDetails::Create(render_view); 553 safe_browsing::ThreatDOMDetails::Create(render_view);
554 #endif 554 #endif
555 555
556 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 556 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
557 if (command_line->HasSwitch(switches::kInstantProcess)) 557 if (command_line->HasSwitch(switches::kInstantProcess))
558 new SearchBox(render_view); 558 new SearchBox(render_view);
559 559
560 new ChromeRenderViewObserver(render_view, web_cache_observer_.get()); 560 new ChromeRenderViewObserver(render_view, web_cache_observer_.get());
561 561
562 new password_manager::CredentialManagerClient(render_view); 562 new password_manager::CredentialManagerClient(render_view);
563 } 563 }
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after
1465 // chrome.system.network.getNetworkInterfaces provides the same 1465 // chrome.system.network.getNetworkInterfaces provides the same
1466 // information. Also, the enforcement of sending and binding UDP is already done 1466 // information. Also, the enforcement of sending and binding UDP is already done
1467 // by chrome extension permission model. 1467 // by chrome extension permission model.
1468 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() { 1468 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() {
1469 #if defined(ENABLE_EXTENSIONS) 1469 #if defined(ENABLE_EXTENSIONS)
1470 return !IsStandaloneExtensionProcess(); 1470 return !IsStandaloneExtensionProcess();
1471 #else 1471 #else
1472 return true; 1472 return true;
1473 #endif 1473 #endif
1474 } 1474 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698