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

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

Issue 1560553002: Framelet Prototype 2016 Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased + Applied Brett's Windows + Fixed security issue Created 4 years, 11 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 "chrome/renderer/worker_content_settings_client_proxy.h" 59 #include "chrome/renderer/worker_content_settings_client_proxy.h"
60 #include "components/autofill/content/renderer/autofill_agent.h" 60 #include "components/autofill/content/renderer/autofill_agent.h"
61 #include "components/autofill/content/renderer/password_autofill_agent.h" 61 #include "components/autofill/content/renderer/password_autofill_agent.h"
62 #include "components/autofill/content/renderer/password_generation_agent.h" 62 #include "components/autofill/content/renderer/password_generation_agent.h"
63 #include "components/content_settings/core/common/content_settings_pattern.h" 63 #include "components/content_settings/core/common/content_settings_pattern.h"
64 #include "components/contextual_search/renderer/overlay_js_render_frame_observer .h" 64 #include "components/contextual_search/renderer/overlay_js_render_frame_observer .h"
65 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_heade rs.h" 65 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_heade rs.h"
66 #include "components/dom_distiller/content/renderer/distillability_agent.h" 66 #include "components/dom_distiller/content/renderer/distillability_agent.h"
67 #include "components/dom_distiller/content/renderer/distiller_js_render_frame_ob server.h" 67 #include "components/dom_distiller/content/renderer/distiller_js_render_frame_ob server.h"
68 #include "components/dom_distiller/core/url_constants.h" 68 #include "components/dom_distiller/core/url_constants.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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 prescient_networking_dispatcher_.reset( 332 prescient_networking_dispatcher_.reset(
332 new network_hints::PrescientNetworkingDispatcher()); 333 new network_hints::PrescientNetworkingDispatcher());
333 #if defined(ENABLE_SPELLCHECK) 334 #if defined(ENABLE_SPELLCHECK)
334 // ChromeRenderViewTest::SetUp() creates a Spellcheck and injects it using 335 // ChromeRenderViewTest::SetUp() creates a Spellcheck and injects it using
335 // SetSpellcheck(). Don't overwrite it. 336 // SetSpellcheck(). Don't overwrite it.
336 if (!spellcheck_) { 337 if (!spellcheck_) {
337 spellcheck_.reset(new SpellCheck()); 338 spellcheck_.reset(new SpellCheck());
338 thread->AddObserver(spellcheck_.get()); 339 thread->AddObserver(spellcheck_.get());
339 } 340 }
340 #endif 341 #endif
342 guest_view_container_dispatcher_.reset(
343 new chrome::ChromeGuestViewContainerDispatcher());
344 thread->AddObserver(guest_view_container_dispatcher_.get());
341 visited_link_slave_.reset(new visitedlink::VisitedLinkSlave()); 345 visited_link_slave_.reset(new visitedlink::VisitedLinkSlave());
342 #if defined(FULL_SAFE_BROWSING) 346 #if defined(FULL_SAFE_BROWSING)
343 phishing_classifier_.reset(safe_browsing::PhishingClassifierFilter::Create()); 347 phishing_classifier_.reset(safe_browsing::PhishingClassifierFilter::Create());
344 #endif 348 #endif
345 prerender_dispatcher_.reset(new prerender::PrerenderDispatcher()); 349 prerender_dispatcher_.reset(new prerender::PrerenderDispatcher());
346 #if defined(ENABLE_WEBRTC) 350 #if defined(ENABLE_WEBRTC)
347 webrtc_logging_message_filter_ = new WebRtcLoggingMessageFilter( 351 webrtc_logging_message_filter_ = new WebRtcLoggingMessageFilter(
348 thread->GetIOMessageLoopProxy()); 352 thread->GetIOMessageLoopProxy());
349 #endif 353 #endif
350 354
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after
1350 const std::string& mime_type, 1354 const std::string& mime_type,
1351 const GURL& original_url) { 1355 const GURL& original_url) {
1352 #if defined(ENABLE_EXTENSIONS) 1356 #if defined(ENABLE_EXTENSIONS)
1353 return ChromeExtensionsRendererClient::CreateBrowserPluginDelegate( 1357 return ChromeExtensionsRendererClient::CreateBrowserPluginDelegate(
1354 render_frame, mime_type, original_url); 1358 render_frame, mime_type, original_url);
1355 #else 1359 #else
1356 return nullptr; 1360 return nullptr;
1357 #endif 1361 #endif
1358 } 1362 }
1359 1363
1364 blink::WebFrameletClient* ChromeContentRendererClient::CreateFramelet(
1365 content::RenderFrame* render_frame,
1366 const GURL& url,
1367 IPC::Sender* thread_safe_sender) {
1368 return new framelet::FrameletContainer(render_frame, url, thread_safe_sender);
1369 }
1370
1360 void ChromeContentRendererClient::RecordRappor(const std::string& metric, 1371 void ChromeContentRendererClient::RecordRappor(const std::string& metric,
1361 const std::string& sample) { 1372 const std::string& sample) {
1362 RenderThread::Get()->Send(new ChromeViewHostMsg_RecordRappor(metric, sample)); 1373 RenderThread::Get()->Send(new ChromeViewHostMsg_RecordRappor(metric, sample));
1363 } 1374 }
1364 1375
1365 void ChromeContentRendererClient::RecordRapporURL(const std::string& metric, 1376 void ChromeContentRendererClient::RecordRapporURL(const std::string& metric,
1366 const GURL& url) { 1377 const GURL& url) {
1367 RenderThread::Get()->Send(new ChromeViewHostMsg_RecordRapporURL(metric, url)); 1378 RenderThread::Get()->Send(new ChromeViewHostMsg_RecordRapporURL(metric, url));
1368 } 1379 }
1369 1380
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
1412 // chrome.system.network.getNetworkInterfaces provides the same 1423 // chrome.system.network.getNetworkInterfaces provides the same
1413 // information. Also, the enforcement of sending and binding UDP is already done 1424 // information. Also, the enforcement of sending and binding UDP is already done
1414 // by chrome extension permission model. 1425 // by chrome extension permission model.
1415 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() { 1426 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() {
1416 #if defined(ENABLE_EXTENSIONS) 1427 #if defined(ENABLE_EXTENSIONS)
1417 return !IsStandaloneExtensionProcess(); 1428 return !IsStandaloneExtensionProcess();
1418 #else 1429 #else
1419 return true; 1430 return true;
1420 #endif 1431 #endif
1421 } 1432 }
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