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

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: move tests, remove dbg msg Created 5 years, 2 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 "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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 // Set up a mojo service to test if this page is a distiller page. 577 // Set up a mojo service to test if this page is a distiller page.
577 new dom_distiller::DistillerJsRenderFrameObserver( 578 new dom_distiller::DistillerJsRenderFrameObserver(
578 render_frame, chrome::ISOLATED_WORLD_ID_CHROME_INTERNAL); 579 render_frame, chrome::ISOLATED_WORLD_ID_CHROME_INTERNAL);
579 580
580 PasswordAutofillAgent* password_autofill_agent = 581 PasswordAutofillAgent* password_autofill_agent =
581 new PasswordAutofillAgent(render_frame); 582 new PasswordAutofillAgent(render_frame);
582 PasswordGenerationAgent* password_generation_agent = 583 PasswordGenerationAgent* password_generation_agent =
583 new PasswordGenerationAgent(render_frame, password_autofill_agent); 584 new PasswordGenerationAgent(render_frame, password_autofill_agent);
584 new AutofillAgent(render_frame, password_autofill_agent, 585 new AutofillAgent(render_frame, password_autofill_agent,
585 password_generation_agent); 586 password_generation_agent);
587 new dom_distiller::DistillabilityAgent(render_frame);
mdjones 2015/09/29 17:31:42 Nit: It might be good to have this close to the ot
wychen 2015/09/29 21:46:57 Done.
586 } 588 }
587 589
588 void ChromeContentRendererClient::RenderViewCreated( 590 void ChromeContentRendererClient::RenderViewCreated(
589 content::RenderView* render_view) { 591 content::RenderView* render_view) {
590 592
591 #if defined(ENABLE_EXTENSIONS) 593 #if defined(ENABLE_EXTENSIONS)
592 new extensions::ExtensionHelper(render_view, extension_dispatcher_.get()); 594 new extensions::ExtensionHelper(render_view, extension_dispatcher_.get());
593 #endif 595 #endif
594 new PageLoadHistograms(render_view); 596 new PageLoadHistograms(render_view);
595 #if defined(ENABLE_PRINTING) 597 #if defined(ENABLE_PRINTING)
(...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after
1669 } 1671 }
1670 1672
1671 void ChromeContentRendererClient::WillDestroyServiceWorkerContextOnWorkerThread( 1673 void ChromeContentRendererClient::WillDestroyServiceWorkerContextOnWorkerThread(
1672 v8::Local<v8::Context> context, 1674 v8::Local<v8::Context> context,
1673 const GURL& url) { 1675 const GURL& url) {
1674 #if defined(ENABLE_EXTENSIONS) 1676 #if defined(ENABLE_EXTENSIONS)
1675 extensions::Dispatcher::WillDestroyServiceWorkerContextOnWorkerThread(context, 1677 extensions::Dispatcher::WillDestroyServiceWorkerContextOnWorkerThread(context,
1676 url); 1678 url);
1677 #endif 1679 #endif
1678 } 1680 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698