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

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

Issue 2079943002: Change RenderFrame to use InterfaceRegistry et al. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a2
Patch Set: . Created 4 years, 6 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
« no previous file with comments | « chrome/renderer/DEPS ('k') | chrome/renderer/chrome_render_thread_observer.cc » ('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 <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 #include "components/plugins/renderer/mobile_youtube_plugin.h" 76 #include "components/plugins/renderer/mobile_youtube_plugin.h"
77 #include "components/signin/core/common/profile_management_switches.h" 77 #include "components/signin/core/common/profile_management_switches.h"
78 #include "components/startup_metric_utils/common/startup_metric.mojom.h" 78 #include "components/startup_metric_utils/common/startup_metric.mojom.h"
79 #include "components/subresource_filter/content/renderer/ruleset_dealer.h" 79 #include "components/subresource_filter/content/renderer/ruleset_dealer.h"
80 #include "components/subresource_filter/content/renderer/subresource_filter_agen t.h" 80 #include "components/subresource_filter/content/renderer/subresource_filter_agen t.h"
81 #include "components/version_info/version_info.h" 81 #include "components/version_info/version_info.h"
82 #include "components/visitedlink/renderer/visitedlink_slave.h" 82 #include "components/visitedlink/renderer/visitedlink_slave.h"
83 #include "components/web_cache/renderer/web_cache_impl.h" 83 #include "components/web_cache/renderer/web_cache_impl.h"
84 #include "content/public/common/content_constants.h" 84 #include "content/public/common/content_constants.h"
85 #include "content/public/common/content_switches.h" 85 #include "content/public/common/content_switches.h"
86 #include "content/public/common/service_registry.h"
87 #include "content/public/common/url_constants.h" 86 #include "content/public/common/url_constants.h"
88 #include "content/public/renderer/plugin_instance_throttler.h" 87 #include "content/public/renderer/plugin_instance_throttler.h"
89 #include "content/public/renderer/render_frame.h" 88 #include "content/public/renderer/render_frame.h"
90 #include "content/public/renderer/render_thread.h" 89 #include "content/public/renderer/render_thread.h"
91 #include "content/public/renderer/render_view.h" 90 #include "content/public/renderer/render_view.h"
92 #include "content/public/renderer/render_view_visitor.h" 91 #include "content/public/renderer/render_view_visitor.h"
93 #include "extensions/common/constants.h" 92 #include "extensions/common/constants.h"
94 #include "ipc/ipc_sync_channel.h" 93 #include "ipc/ipc_sync_channel.h"
95 #include "net/base/net_errors.h" 94 #include "net/base/net_errors.h"
96 #include "ppapi/c/private/ppb_pdf.h" 95 #include "ppapi/c/private/ppb_pdf.h"
97 #include "ppapi/shared_impl/ppapi_switches.h" 96 #include "ppapi/shared_impl/ppapi_switches.h"
97 #include "services/shell/public/cpp/interface_provider.h"
98 #include "third_party/WebKit/public/platform/URLConversion.h" 98 #include "third_party/WebKit/public/platform/URLConversion.h"
99 #include "third_party/WebKit/public/platform/WebCachePolicy.h" 99 #include "third_party/WebKit/public/platform/WebCachePolicy.h"
100 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" 100 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
101 #include "third_party/WebKit/public/platform/WebURL.h" 101 #include "third_party/WebKit/public/platform/WebURL.h"
102 #include "third_party/WebKit/public/platform/WebURLError.h" 102 #include "third_party/WebKit/public/platform/WebURLError.h"
103 #include "third_party/WebKit/public/platform/WebURLRequest.h" 103 #include "third_party/WebKit/public/platform/WebURLRequest.h"
104 #include "third_party/WebKit/public/platform/WebURLResponse.h" 104 #include "third_party/WebKit/public/platform/WebURLResponse.h"
105 #include "third_party/WebKit/public/web/WebCache.h" 105 #include "third_party/WebKit/public/web/WebCache.h"
106 #include "third_party/WebKit/public/web/WebDataSource.h" 106 #include "third_party/WebKit/public/web/WebDataSource.h"
107 #include "third_party/WebKit/public/web/WebDocument.h" 107 #include "third_party/WebKit/public/web/WebDocument.h"
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 } 324 }
325 325
326 ChromeContentRendererClient::~ChromeContentRendererClient() { 326 ChromeContentRendererClient::~ChromeContentRendererClient() {
327 } 327 }
328 328
329 void ChromeContentRendererClient::RenderThreadStarted() { 329 void ChromeContentRendererClient::RenderThreadStarted() {
330 RenderThread* thread = RenderThread::Get(); 330 RenderThread* thread = RenderThread::Get();
331 331
332 { 332 {
333 startup_metric_utils::mojom::StartupMetricHostPtr startup_metric_host; 333 startup_metric_utils::mojom::StartupMetricHostPtr startup_metric_host;
334 thread->GetServiceRegistry()->ConnectToRemoteService( 334 thread->GetRemoteInterfaces()->GetInterface(&startup_metric_host);
335 mojo::GetProxy(&startup_metric_host));
336 startup_metric_host->RecordRendererMainEntryTime(main_entry_time_); 335 startup_metric_host->RecordRendererMainEntryTime(main_entry_time_);
337 } 336 }
338 337
339 chrome_observer_.reset(new ChromeRenderThreadObserver()); 338 chrome_observer_.reset(new ChromeRenderThreadObserver());
340 web_cache_impl_.reset(new web_cache::WebCacheImpl()); 339 web_cache_impl_.reset(new web_cache::WebCacheImpl());
341 340
342 #if defined(ENABLE_EXTENSIONS) 341 #if defined(ENABLE_EXTENSIONS)
343 ChromeExtensionsRendererClient::GetInstance()->RenderThreadStarted(); 342 ChromeExtensionsRendererClient::GetInstance()->RenderThreadStarted();
344 #endif 343 #endif
345 344
(...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 // chrome.system.network.getNetworkInterfaces provides the same 1383 // chrome.system.network.getNetworkInterfaces provides the same
1385 // information. Also, the enforcement of sending and binding UDP is already done 1384 // information. Also, the enforcement of sending and binding UDP is already done
1386 // by chrome extension permission model. 1385 // by chrome extension permission model.
1387 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() { 1386 bool ChromeContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() {
1388 #if defined(ENABLE_EXTENSIONS) 1387 #if defined(ENABLE_EXTENSIONS)
1389 return !IsStandaloneExtensionProcess(); 1388 return !IsStandaloneExtensionProcess();
1390 #else 1389 #else
1391 return true; 1390 return true;
1392 #endif 1391 #endif
1393 } 1392 }
OLDNEW
« no previous file with comments | « chrome/renderer/DEPS ('k') | chrome/renderer/chrome_render_thread_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698