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

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

Issue 1248643004: Test distillability without JavaScript (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@early
Patch Set: fix browsertest, merge webkit CL, merge http://crrev.com/1403413004 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/data/dom_distiller/non_og_article.html » ('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/searchbox/search_bouncer.h" 52 #include "chrome/renderer/searchbox/search_bouncer.h"
53 #include "chrome/renderer/searchbox/searchbox.h" 53 #include "chrome/renderer/searchbox/searchbox.h"
54 #include "chrome/renderer/searchbox/searchbox_extension.h" 54 #include "chrome/renderer/searchbox/searchbox_extension.h"
55 #include "chrome/renderer/tts_dispatcher.h" 55 #include "chrome/renderer/tts_dispatcher.h"
56 #include "chrome/renderer/worker_content_settings_client_proxy.h" 56 #include "chrome/renderer/worker_content_settings_client_proxy.h"
57 #include "components/autofill/content/renderer/autofill_agent.h" 57 #include "components/autofill/content/renderer/autofill_agent.h"
58 #include "components/autofill/content/renderer/password_autofill_agent.h" 58 #include "components/autofill/content/renderer/password_autofill_agent.h"
59 #include "components/autofill/content/renderer/password_generation_agent.h" 59 #include "components/autofill/content/renderer/password_generation_agent.h"
60 #include "components/content_settings/core/common/content_settings_pattern.h" 60 #include "components/content_settings/core/common/content_settings_pattern.h"
61 #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"
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"
70 #include "components/plugins/renderer/mobile_youtube_plugin.h" 71 #include "components/plugins/renderer/mobile_youtube_plugin.h"
71 #include "components/signin/core/common/profile_management_switches.h" 72 #include "components/signin/core/common/profile_management_switches.h"
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 if (prerender::PrerenderHelper::IsPrerendering( 566 if (prerender::PrerenderHelper::IsPrerendering(
566 render_frame->GetRenderView()->GetMainRenderFrame())) { 567 render_frame->GetRenderView()->GetMainRenderFrame())) {
567 new prerender::PrerenderHelper(render_frame); 568 new prerender::PrerenderHelper(render_frame);
568 } 569 }
569 } 570 }
570 571
571 // Set up a mojo service to test if this page is a distiller page. 572 // Set up a mojo service to test if this page is a distiller page.
572 new dom_distiller::DistillerJsRenderFrameObserver( 573 new dom_distiller::DistillerJsRenderFrameObserver(
573 render_frame, chrome::ISOLATED_WORLD_ID_CHROME_INTERNAL); 574 render_frame, chrome::ISOLATED_WORLD_ID_CHROME_INTERNAL);
574 575
576 new dom_distiller::DistillabilityAgent(render_frame);
577
575 PasswordAutofillAgent* password_autofill_agent = 578 PasswordAutofillAgent* password_autofill_agent =
576 new PasswordAutofillAgent(render_frame); 579 new PasswordAutofillAgent(render_frame);
577 PasswordGenerationAgent* password_generation_agent = 580 PasswordGenerationAgent* password_generation_agent =
578 new PasswordGenerationAgent(render_frame, password_autofill_agent); 581 new PasswordGenerationAgent(render_frame, password_autofill_agent);
579 new AutofillAgent(render_frame, password_autofill_agent, 582 new AutofillAgent(render_frame, password_autofill_agent,
580 password_generation_agent); 583 password_generation_agent);
581 } 584 }
582 585
583 void ChromeContentRendererClient::RenderViewCreated( 586 void ChromeContentRendererClient::RenderViewCreated(
584 content::RenderView* render_view) { 587 content::RenderView* render_view) {
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after
1676 // chrome.system.network.getNetworkInterfaces provides the same 1679 // chrome.system.network.getNetworkInterfaces provides the same
1677 // information. Also, the enforcement of sending and binding UDP is already done 1680 // information. Also, the enforcement of sending and binding UDP is already done
1678 // by chrome extension permission model. 1681 // by chrome extension permission model.
1679 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() { 1682 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() {
1680 #if defined(ENABLE_EXTENSIONS) 1683 #if defined(ENABLE_EXTENSIONS)
1681 return !IsStandaloneExtensionProcess(); 1684 return !IsStandaloneExtensionProcess();
1682 #else 1685 #else
1683 return true; 1686 return true;
1684 #endif 1687 #endif
1685 } 1688 }
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/data/dom_distiller/non_og_article.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698