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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2099063002: Migrate RenderProcessHost, ChildThread to InterfaceRegistry/Provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 #include "content/public/browser/resource_context.h" 152 #include "content/public/browser/resource_context.h"
153 #include "content/public/browser/site_instance.h" 153 #include "content/public/browser/site_instance.h"
154 #include "content/public/browser/storage_partition.h" 154 #include "content/public/browser/storage_partition.h"
155 #include "content/public/browser/vpn_service_proxy.h" 155 #include "content/public/browser/vpn_service_proxy.h"
156 #include "content/public/browser/web_contents.h" 156 #include "content/public/browser/web_contents.h"
157 #include "content/public/common/child_process_host.h" 157 #include "content/public/common/child_process_host.h"
158 #include "content/public/common/content_descriptors.h" 158 #include "content/public/common/content_descriptors.h"
159 #include "content/public/common/content_features.h" 159 #include "content/public/common/content_features.h"
160 #include "content/public/common/content_switches.h" 160 #include "content/public/common/content_switches.h"
161 #include "content/public/common/sandbox_type.h" 161 #include "content/public/common/sandbox_type.h"
162 #include "content/public/common/service_registry.h"
163 #include "content/public/common/url_utils.h" 162 #include "content/public/common/url_utils.h"
164 #include "content/public/common/web_preferences.h" 163 #include "content/public/common/web_preferences.h"
165 #include "device/usb/public/interfaces/chooser_service.mojom.h" 164 #include "device/usb/public/interfaces/chooser_service.mojom.h"
166 #include "device/usb/public/interfaces/device_manager.mojom.h" 165 #include "device/usb/public/interfaces/device_manager.mojom.h"
167 #include "gin/v8_initializer.h" 166 #include "gin/v8_initializer.h"
168 #include "net/base/mime_util.h" 167 #include "net/base/mime_util.h"
169 #include "net/cookies/canonical_cookie.h" 168 #include "net/cookies/canonical_cookie.h"
170 #include "net/cookies/cookie_options.h" 169 #include "net/cookies/cookie_options.h"
171 #include "net/ssl/ssl_cert_request_info.h" 170 #include "net/ssl/ssl_cert_request_info.h"
172 #include "ppapi/host/ppapi_host.h" 171 #include "ppapi/host/ppapi_host.h"
(...skipping 2548 matching lines...) Expand 10 before | Expand all | Expand 10 after
2721 tokenizer.set_quote_chars("\""); 2720 tokenizer.set_quote_chars("\"");
2722 while (tokenizer.GetNext()) { 2721 while (tokenizer.GetNext()) {
2723 if (tokenizer.token() == mime_type) 2722 if (tokenizer.token() == mime_type)
2724 return true; 2723 return true;
2725 } 2724 }
2726 2725
2727 return false; 2726 return false;
2728 } 2727 }
2729 #endif // defined(OS_WIN) 2728 #endif // defined(OS_WIN)
2730 2729
2731 void ChromeContentBrowserClient::RegisterRenderProcessMojoServices( 2730 void ChromeContentBrowserClient::ExposeInterfacesToRenderer(
2732 content::ServiceRegistry* registry, 2731 shell::InterfaceRegistry* registry,
2733 content::RenderProcessHost* render_process_host) { 2732 content::RenderProcessHost* render_process_host) {
2734 registry->AddService( 2733 registry->AddInterface(
2735 base::Bind(&startup_metric_utils::StartupMetricHostImpl::Create)); 2734 base::Bind(&startup_metric_utils::StartupMetricHostImpl::Create));
2736 } 2735 }
2737 2736
2738 void ChromeContentBrowserClient::RegisterFrameMojoShellInterfaces( 2737 void ChromeContentBrowserClient::RegisterFrameMojoShellInterfaces(
2739 shell::InterfaceRegistry* registry, 2738 shell::InterfaceRegistry* registry,
2740 content::RenderFrameHost* render_frame_host) { 2739 content::RenderFrameHost* render_frame_host) {
2741 // TODO(xhwang): Only register this when ENABLE_MOJO_MEDIA. 2740 // TODO(xhwang): Only register this when ENABLE_MOJO_MEDIA.
2742 #if defined(OS_CHROMEOS) 2741 #if defined(OS_CHROMEOS)
2743 registry->AddInterface( 2742 registry->AddInterface(
2744 base::Bind(&chromeos::attestation::PlatformVerificationImpl::Create, 2743 base::Bind(&chromeos::attestation::PlatformVerificationImpl::Create,
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
2970 if (channel <= kMaxDisableEncryptionChannel) { 2969 if (channel <= kMaxDisableEncryptionChannel) {
2971 static const char* const kWebRtcDevSwitchNames[] = { 2970 static const char* const kWebRtcDevSwitchNames[] = {
2972 switches::kDisableWebRtcEncryption, 2971 switches::kDisableWebRtcEncryption,
2973 }; 2972 };
2974 to_command_line->CopySwitchesFrom(from_command_line, 2973 to_command_line->CopySwitchesFrom(from_command_line,
2975 kWebRtcDevSwitchNames, 2974 kWebRtcDevSwitchNames,
2976 arraysize(kWebRtcDevSwitchNames)); 2975 arraysize(kWebRtcDevSwitchNames));
2977 } 2976 }
2978 } 2977 }
2979 #endif // defined(ENABLE_WEBRTC) 2978 #endif // defined(ENABLE_WEBRTC)
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | chrome/browser/chromeos/arc/gpu_arc_video_service_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698