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

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

Issue 2022783002: Skeleton of the Safe Browsing Subresource Filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 6 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
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 <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 #include "components/dom_distiller/content/renderer/distiller_js_render_frame_ob server.h" 69 #include "components/dom_distiller/content/renderer/distiller_js_render_frame_ob server.h"
70 #include "components/dom_distiller/core/url_constants.h" 70 #include "components/dom_distiller/core/url_constants.h"
71 #include "components/error_page/common/localized_error.h" 71 #include "components/error_page/common/localized_error.h"
72 #include "components/network_hints/renderer/prescient_networking_dispatcher.h" 72 #include "components/network_hints/renderer/prescient_networking_dispatcher.h"
73 #include "components/page_load_metrics/renderer/metrics_render_frame_observer.h" 73 #include "components/page_load_metrics/renderer/metrics_render_frame_observer.h"
74 #include "components/password_manager/content/renderer/credential_manager_client .h" 74 #include "components/password_manager/content/renderer/credential_manager_client .h"
75 #include "components/pdf/renderer/pepper_pdf_host.h" 75 #include "components/pdf/renderer/pepper_pdf_host.h"
76 #include "components/plugins/renderer/mobile_youtube_plugin.h" 76 #include "components/plugins/renderer/mobile_youtube_plugin.h"
77 #include "components/signin/core/common/profile_management_switches.h" 77 #include "components/signin/core/common/profile_management_switches.h"
78 #include "components/startup_metric_utils/common/startup_metric_messages.h" 78 #include "components/startup_metric_utils/common/startup_metric_messages.h"
79 #include "components/subresource_filter/content/renderer/subresource_filter_agen t.h"
79 #include "components/version_info/version_info.h" 80 #include "components/version_info/version_info.h"
80 #include "components/visitedlink/renderer/visitedlink_slave.h" 81 #include "components/visitedlink/renderer/visitedlink_slave.h"
81 #include "components/web_cache/renderer/web_cache_impl.h" 82 #include "components/web_cache/renderer/web_cache_impl.h"
82 #include "content/public/common/content_constants.h" 83 #include "content/public/common/content_constants.h"
83 #include "content/public/common/content_switches.h" 84 #include "content/public/common/content_switches.h"
84 #include "content/public/common/url_constants.h" 85 #include "content/public/common/url_constants.h"
85 #include "content/public/renderer/plugin_instance_throttler.h" 86 #include "content/public/renderer/plugin_instance_throttler.h"
86 #include "content/public/renderer/render_frame.h" 87 #include "content/public/renderer/render_frame.h"
87 #include "content/public/renderer/render_thread.h" 88 #include "content/public/renderer/render_thread.h"
88 #include "content/public/renderer/render_view.h" 89 #include "content/public/renderer/render_view.h"
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 509
509 // Set up a mojo service to test if this page is a contextual search page. 510 // Set up a mojo service to test if this page is a contextual search page.
510 new contextual_search::OverlayJsRenderFrameObserver(render_frame); 511 new contextual_search::OverlayJsRenderFrameObserver(render_frame);
511 512
512 PasswordAutofillAgent* password_autofill_agent = 513 PasswordAutofillAgent* password_autofill_agent =
513 new PasswordAutofillAgent(render_frame); 514 new PasswordAutofillAgent(render_frame);
514 PasswordGenerationAgent* password_generation_agent = 515 PasswordGenerationAgent* password_generation_agent =
515 new PasswordGenerationAgent(render_frame, password_autofill_agent); 516 new PasswordGenerationAgent(render_frame, password_autofill_agent);
516 new AutofillAgent(render_frame, password_autofill_agent, 517 new AutofillAgent(render_frame, password_autofill_agent,
517 password_generation_agent); 518 password_generation_agent);
519
520 new subresource_filter::SubresourceFilterAgent(render_frame);
518 } 521 }
519 522
520 void ChromeContentRendererClient::RenderViewCreated( 523 void ChromeContentRendererClient::RenderViewCreated(
521 content::RenderView* render_view) { 524 content::RenderView* render_view) {
522 #if defined(ENABLE_EXTENSIONS) 525 #if defined(ENABLE_EXTENSIONS)
523 ChromeExtensionsRendererClient::GetInstance()->RenderViewCreated(render_view); 526 ChromeExtensionsRendererClient::GetInstance()->RenderViewCreated(render_view);
524 #endif 527 #endif
525 new PageLoadHistograms(render_view); 528 new PageLoadHistograms(render_view);
526 #if defined(ENABLE_PRINTING) 529 #if defined(ENABLE_PRINTING)
527 new printing::PrintWebViewHelper( 530 new printing::PrintWebViewHelper(
(...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 // chrome.system.network.getNetworkInterfaces provides the same 1387 // chrome.system.network.getNetworkInterfaces provides the same
1385 // information. Also, the enforcement of sending and binding UDP is already done 1388 // information. Also, the enforcement of sending and binding UDP is already done
1386 // by chrome extension permission model. 1389 // by chrome extension permission model.
1387 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() { 1390 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() {
1388 #if defined(ENABLE_EXTENSIONS) 1391 #if defined(ENABLE_EXTENSIONS)
1389 return !IsStandaloneExtensionProcess(); 1392 return !IsStandaloneExtensionProcess();
1390 #else 1393 #else
1391 return true; 1394 return true;
1392 #endif 1395 #endif
1393 } 1396 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698