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

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

Issue 1602663003: Framelet Prototype 2016 using Mojo IPC Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Disabled oilpan Created 4 years, 10 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 <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/crash_logging.h" 10 #include "base/debug/crash_logging.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 #include "components/autofill/content/renderer/autofill_agent.h" 59 #include "components/autofill/content/renderer/autofill_agent.h"
60 #include "components/autofill/content/renderer/password_autofill_agent.h" 60 #include "components/autofill/content/renderer/password_autofill_agent.h"
61 #include "components/autofill/content/renderer/password_generation_agent.h" 61 #include "components/autofill/content/renderer/password_generation_agent.h"
62 #include "components/content_settings/core/common/content_settings_pattern.h" 62 #include "components/content_settings/core/common/content_settings_pattern.h"
63 #include "components/contextual_search/renderer/overlay_js_render_frame_observer .h" 63 #include "components/contextual_search/renderer/overlay_js_render_frame_observer .h"
64 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_heade rs.h" 64 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_heade rs.h"
65 #include "components/dom_distiller/content/renderer/distillability_agent.h" 65 #include "components/dom_distiller/content/renderer/distillability_agent.h"
66 #include "components/dom_distiller/content/renderer/distiller_js_render_frame_ob server.h" 66 #include "components/dom_distiller/content/renderer/distiller_js_render_frame_ob server.h"
67 #include "components/dom_distiller/core/url_constants.h" 67 #include "components/dom_distiller/core/url_constants.h"
68 #include "components/error_page/common/localized_error.h" 68 #include "components/error_page/common/localized_error.h"
69 #include "components/framelet/renderer/framelet_container.h"
69 #include "components/nacl/renderer/ppb_nacl_private.h" 70 #include "components/nacl/renderer/ppb_nacl_private.h"
70 #include "components/nacl/renderer/ppb_nacl_private_impl.h" 71 #include "components/nacl/renderer/ppb_nacl_private_impl.h"
71 #include "components/network_hints/renderer/prescient_networking_dispatcher.h" 72 #include "components/network_hints/renderer/prescient_networking_dispatcher.h"
72 #include "components/page_load_metrics/renderer/metrics_render_frame_observer.h" 73 #include "components/page_load_metrics/renderer/metrics_render_frame_observer.h"
73 #include "components/password_manager/content/renderer/credential_manager_client .h" 74 #include "components/password_manager/content/renderer/credential_manager_client .h"
74 #include "components/pdf/renderer/pepper_pdf_host.h" 75 #include "components/pdf/renderer/pepper_pdf_host.h"
75 #include "components/plugins/renderer/mobile_youtube_plugin.h" 76 #include "components/plugins/renderer/mobile_youtube_plugin.h"
76 #include "components/signin/core/common/profile_management_switches.h" 77 #include "components/signin/core/common/profile_management_switches.h"
77 #include "components/version_info/version_info.h" 78 #include "components/version_info/version_info.h"
78 #include "components/visitedlink/renderer/visitedlink_slave.h" 79 #include "components/visitedlink/renderer/visitedlink_slave.h"
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 prescient_networking_dispatcher_.reset( 333 prescient_networking_dispatcher_.reset(
333 new network_hints::PrescientNetworkingDispatcher()); 334 new network_hints::PrescientNetworkingDispatcher());
334 #if defined(ENABLE_SPELLCHECK) 335 #if defined(ENABLE_SPELLCHECK)
335 // ChromeRenderViewTest::SetUp() creates a Spellcheck and injects it using 336 // ChromeRenderViewTest::SetUp() creates a Spellcheck and injects it using
336 // SetSpellcheck(). Don't overwrite it. 337 // SetSpellcheck(). Don't overwrite it.
337 if (!spellcheck_) { 338 if (!spellcheck_) {
338 spellcheck_.reset(new SpellCheck()); 339 spellcheck_.reset(new SpellCheck());
339 thread->AddObserver(spellcheck_.get()); 340 thread->AddObserver(spellcheck_.get());
340 } 341 }
341 #endif 342 #endif
343 guest_view_container_dispatcher_.reset(
344 new chrome::ChromeGuestViewContainerDispatcher());
345 thread->AddObserver(guest_view_container_dispatcher_.get());
342 visited_link_slave_.reset(new visitedlink::VisitedLinkSlave()); 346 visited_link_slave_.reset(new visitedlink::VisitedLinkSlave());
343 #if defined(FULL_SAFE_BROWSING) 347 #if defined(FULL_SAFE_BROWSING)
344 phishing_classifier_.reset(safe_browsing::PhishingClassifierFilter::Create()); 348 phishing_classifier_.reset(safe_browsing::PhishingClassifierFilter::Create());
345 #endif 349 #endif
346 prerender_dispatcher_.reset(new prerender::PrerenderDispatcher()); 350 prerender_dispatcher_.reset(new prerender::PrerenderDispatcher());
347 #if defined(ENABLE_WEBRTC) 351 #if defined(ENABLE_WEBRTC)
348 webrtc_logging_message_filter_ = new WebRtcLoggingMessageFilter( 352 webrtc_logging_message_filter_ = new WebRtcLoggingMessageFilter(
349 thread->GetIOMessageLoopProxy()); 353 thread->GetIOMessageLoopProxy());
350 #endif 354 #endif
351 355
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after
1352 const std::string& mime_type, 1356 const std::string& mime_type,
1353 const GURL& original_url) { 1357 const GURL& original_url) {
1354 #if defined(ENABLE_EXTENSIONS) 1358 #if defined(ENABLE_EXTENSIONS)
1355 return ChromeExtensionsRendererClient::CreateBrowserPluginDelegate( 1359 return ChromeExtensionsRendererClient::CreateBrowserPluginDelegate(
1356 render_frame, mime_type, original_url); 1360 render_frame, mime_type, original_url);
1357 #else 1361 #else
1358 return nullptr; 1362 return nullptr;
1359 #endif 1363 #endif
1360 } 1364 }
1361 1365
1366 blink::WebFrameletClient* ChromeContentRendererClient::CreateFramelet(
1367 content::RenderFrame* render_frame,
1368 const GURL& url,
1369 IPC::Sender* thread_safe_sender) {
1370 return new framelet::FrameletContainer(render_frame, url, thread_safe_sender);
1371 }
1372
1362 void ChromeContentRendererClient::RecordRappor(const std::string& metric, 1373 void ChromeContentRendererClient::RecordRappor(const std::string& metric,
1363 const std::string& sample) { 1374 const std::string& sample) {
1364 RenderThread::Get()->Send(new ChromeViewHostMsg_RecordRappor(metric, sample)); 1375 RenderThread::Get()->Send(new ChromeViewHostMsg_RecordRappor(metric, sample));
1365 } 1376 }
1366 1377
1367 void ChromeContentRendererClient::RecordRapporURL(const std::string& metric, 1378 void ChromeContentRendererClient::RecordRapporURL(const std::string& metric,
1368 const GURL& url) { 1379 const GURL& url) {
1369 RenderThread::Get()->Send(new ChromeViewHostMsg_RecordRapporURL(metric, url)); 1380 RenderThread::Get()->Send(new ChromeViewHostMsg_RecordRapporURL(metric, url));
1370 } 1381 }
1371 1382
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
1414 // chrome.system.network.getNetworkInterfaces provides the same 1425 // chrome.system.network.getNetworkInterfaces provides the same
1415 // information. Also, the enforcement of sending and binding UDP is already done 1426 // information. Also, the enforcement of sending and binding UDP is already done
1416 // by chrome extension permission model. 1427 // by chrome extension permission model.
1417 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() { 1428 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() {
1418 #if defined(ENABLE_EXTENSIONS) 1429 #if defined(ENABLE_EXTENSIONS)
1419 return !IsStandaloneExtensionProcess(); 1430 return !IsStandaloneExtensionProcess();
1420 #else 1431 #else
1421 return true; 1432 return true;
1422 #endif 1433 #endif
1423 } 1434 }
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.h ('k') | chrome/renderer/extensions/chrome_extensions_renderer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698