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

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: Addressed comments from battre@. 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 #include "components/dom_distiller/content/renderer/distiller_js_render_frame_ob server.h" 68 #include "components/dom_distiller/content/renderer/distiller_js_render_frame_ob server.h"
69 #include "components/dom_distiller/core/url_constants.h" 69 #include "components/dom_distiller/core/url_constants.h"
70 #include "components/error_page/common/localized_error.h" 70 #include "components/error_page/common/localized_error.h"
71 #include "components/network_hints/renderer/prescient_networking_dispatcher.h" 71 #include "components/network_hints/renderer/prescient_networking_dispatcher.h"
72 #include "components/page_load_metrics/renderer/metrics_render_frame_observer.h" 72 #include "components/page_load_metrics/renderer/metrics_render_frame_observer.h"
73 #include "components/password_manager/content/renderer/credential_manager_client .h" 73 #include "components/password_manager/content/renderer/credential_manager_client .h"
74 #include "components/pdf/renderer/pepper_pdf_host.h" 74 #include "components/pdf/renderer/pepper_pdf_host.h"
75 #include "components/plugins/renderer/mobile_youtube_plugin.h" 75 #include "components/plugins/renderer/mobile_youtube_plugin.h"
76 #include "components/signin/core/common/profile_management_switches.h" 76 #include "components/signin/core/common/profile_management_switches.h"
77 #include "components/startup_metric_utils/common/startup_metric_messages.h" 77 #include "components/startup_metric_utils/common/startup_metric_messages.h"
78 #include "components/subresource_filter/content/renderer/subresource_filter_agen t.h"
78 #include "components/version_info/version_info.h" 79 #include "components/version_info/version_info.h"
79 #include "components/visitedlink/renderer/visitedlink_slave.h" 80 #include "components/visitedlink/renderer/visitedlink_slave.h"
80 #include "components/web_cache/renderer/web_cache_impl.h" 81 #include "components/web_cache/renderer/web_cache_impl.h"
81 #include "content/public/common/content_constants.h" 82 #include "content/public/common/content_constants.h"
82 #include "content/public/common/content_switches.h" 83 #include "content/public/common/content_switches.h"
83 #include "content/public/common/url_constants.h" 84 #include "content/public/common/url_constants.h"
84 #include "content/public/renderer/plugin_instance_throttler.h" 85 #include "content/public/renderer/plugin_instance_throttler.h"
85 #include "content/public/renderer/render_frame.h" 86 #include "content/public/renderer/render_frame.h"
86 #include "content/public/renderer/render_thread.h" 87 #include "content/public/renderer/render_thread.h"
87 #include "content/public/renderer/render_view.h" 88 #include "content/public/renderer/render_view.h"
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 508
508 // Set up a mojo service to test if this page is a contextual search page. 509 // Set up a mojo service to test if this page is a contextual search page.
509 new contextual_search::OverlayJsRenderFrameObserver(render_frame); 510 new contextual_search::OverlayJsRenderFrameObserver(render_frame);
510 511
511 PasswordAutofillAgent* password_autofill_agent = 512 PasswordAutofillAgent* password_autofill_agent =
512 new PasswordAutofillAgent(render_frame); 513 new PasswordAutofillAgent(render_frame);
513 PasswordGenerationAgent* password_generation_agent = 514 PasswordGenerationAgent* password_generation_agent =
514 new PasswordGenerationAgent(render_frame, password_autofill_agent); 515 new PasswordGenerationAgent(render_frame, password_autofill_agent);
515 new AutofillAgent(render_frame, password_autofill_agent, 516 new AutofillAgent(render_frame, password_autofill_agent,
516 password_generation_agent); 517 password_generation_agent);
518
519 new subresource_filter::SubresourceFilterAgent(render_frame);
517 } 520 }
518 521
519 void ChromeContentRendererClient::RenderViewCreated( 522 void ChromeContentRendererClient::RenderViewCreated(
520 content::RenderView* render_view) { 523 content::RenderView* render_view) {
521 #if defined(ENABLE_EXTENSIONS) 524 #if defined(ENABLE_EXTENSIONS)
522 ChromeExtensionsRendererClient::GetInstance()->RenderViewCreated(render_view); 525 ChromeExtensionsRendererClient::GetInstance()->RenderViewCreated(render_view);
523 #endif 526 #endif
524 new PageLoadHistograms(render_view); 527 new PageLoadHistograms(render_view);
525 #if defined(ENABLE_PRINTING) 528 #if defined(ENABLE_PRINTING)
526 new printing::PrintWebViewHelper( 529 new printing::PrintWebViewHelper(
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after
1410 // chrome.system.network.getNetworkInterfaces provides the same 1413 // chrome.system.network.getNetworkInterfaces provides the same
1411 // information. Also, the enforcement of sending and binding UDP is already done 1414 // information. Also, the enforcement of sending and binding UDP is already done
1412 // by chrome extension permission model. 1415 // by chrome extension permission model.
1413 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() { 1416 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() {
1414 #if defined(ENABLE_EXTENSIONS) 1417 #if defined(ENABLE_EXTENSIONS)
1415 return !IsStandaloneExtensionProcess(); 1418 return !IsStandaloneExtensionProcess();
1416 #else 1419 #else
1417 return true; 1420 return true;
1418 #endif 1421 #endif
1419 } 1422 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698