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

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

Issue 1385663002: [Contextual Search] Add Mojo-enabled API component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a few more missing dependencies to the new component's BUILD.gn rules for our renderer sectio… Created 5 years 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/DEPS ('k') | components/components.gyp » ('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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 #include "chrome/renderer/safe_browsing/threat_dom_details.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/contextual_search/renderer/overlay_js_render_frame_observer .h"
60 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_heade rs.h" 61 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_heade rs.h"
61 #include "components/dom_distiller/content/renderer/distillability_agent.h" 62 #include "components/dom_distiller/content/renderer/distillability_agent.h"
62 #include "components/dom_distiller/content/renderer/distiller_js_render_frame_ob server.h" 63 #include "components/dom_distiller/content/renderer/distiller_js_render_frame_ob server.h"
63 #include "components/dom_distiller/core/url_constants.h" 64 #include "components/dom_distiller/core/url_constants.h"
64 #include "components/nacl/renderer/ppb_nacl_private.h" 65 #include "components/nacl/renderer/ppb_nacl_private.h"
65 #include "components/nacl/renderer/ppb_nacl_private_impl.h" 66 #include "components/nacl/renderer/ppb_nacl_private_impl.h"
66 #include "components/network_hints/renderer/prescient_networking_dispatcher.h" 67 #include "components/network_hints/renderer/prescient_networking_dispatcher.h"
67 #include "components/page_load_metrics/renderer/metrics_render_frame_observer.h" 68 #include "components/page_load_metrics/renderer/metrics_render_frame_observer.h"
68 #include "components/password_manager/content/renderer/credential_manager_client .h" 69 #include "components/password_manager/content/renderer/credential_manager_client .h"
69 #include "components/pdf/renderer/pepper_pdf_host.h" 70 #include "components/pdf/renderer/pepper_pdf_host.h"
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 } 529 }
529 530
530 // Set up a mojo service to test if this page is a distiller page. 531 // Set up a mojo service to test if this page is a distiller page.
531 new dom_distiller::DistillerJsRenderFrameObserver( 532 new dom_distiller::DistillerJsRenderFrameObserver(
532 render_frame, chrome::ISOLATED_WORLD_ID_CHROME_INTERNAL); 533 render_frame, chrome::ISOLATED_WORLD_ID_CHROME_INTERNAL);
533 534
534 // Create DistillabilityAgent to send distillability updates to 535 // Create DistillabilityAgent to send distillability updates to
535 // DistillabilityDriver in the browser process. 536 // DistillabilityDriver in the browser process.
536 new dom_distiller::DistillabilityAgent(render_frame); 537 new dom_distiller::DistillabilityAgent(render_frame);
537 538
539 // Set up a mojo service to test if this page is a contextual search page.
540 new contextual_search::OverlayJsRenderFrameObserver(render_frame);
541
538 PasswordAutofillAgent* password_autofill_agent = 542 PasswordAutofillAgent* password_autofill_agent =
539 new PasswordAutofillAgent(render_frame); 543 new PasswordAutofillAgent(render_frame);
540 PasswordGenerationAgent* password_generation_agent = 544 PasswordGenerationAgent* password_generation_agent =
541 new PasswordGenerationAgent(render_frame, password_autofill_agent); 545 new PasswordGenerationAgent(render_frame, password_autofill_agent);
542 new AutofillAgent(render_frame, password_autofill_agent, 546 new AutofillAgent(render_frame, password_autofill_agent,
543 password_generation_agent); 547 password_generation_agent);
544 } 548 }
545 549
546 void ChromeContentRendererClient::RenderViewCreated( 550 void ChromeContentRendererClient::RenderViewCreated(
547 content::RenderView* render_view) { 551 content::RenderView* render_view) {
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 // chrome.system.network.getNetworkInterfaces provides the same 1486 // chrome.system.network.getNetworkInterfaces provides the same
1483 // information. Also, the enforcement of sending and binding UDP is already done 1487 // information. Also, the enforcement of sending and binding UDP is already done
1484 // by chrome extension permission model. 1488 // by chrome extension permission model.
1485 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() { 1489 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() {
1486 #if defined(ENABLE_EXTENSIONS) 1490 #if defined(ENABLE_EXTENSIONS)
1487 return !IsStandaloneExtensionProcess(); 1491 return !IsStandaloneExtensionProcess();
1488 #else 1492 #else
1489 return true; 1493 return true;
1490 #endif 1494 #endif
1491 } 1495 }
OLDNEW
« no previous file with comments | « chrome/renderer/DEPS ('k') | components/components.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698