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

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

Issue 2111353002: Move content's shell connections to the IO thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/chrome_interface_factory.h » ('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/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/render_view_host.h" 152 #include "content/public/browser/render_view_host.h"
153 #include "content/public/browser/resource_context.h" 153 #include "content/public/browser/resource_context.h"
154 #include "content/public/browser/site_instance.h" 154 #include "content/public/browser/site_instance.h"
155 #include "content/public/browser/storage_partition.h" 155 #include "content/public/browser/storage_partition.h"
156 #include "content/public/browser/vpn_service_proxy.h" 156 #include "content/public/browser/vpn_service_proxy.h"
157 #include "content/public/browser/web_contents.h" 157 #include "content/public/browser/web_contents.h"
158 #include "content/public/common/child_process_host.h" 158 #include "content/public/common/child_process_host.h"
159 #include "content/public/common/content_descriptors.h" 159 #include "content/public/common/content_descriptors.h"
160 #include "content/public/common/content_features.h" 160 #include "content/public/common/content_features.h"
161 #include "content/public/common/content_switches.h" 161 #include "content/public/common/content_switches.h"
162 #include "content/public/common/mojo_shell_connection.h"
162 #include "content/public/common/sandbox_type.h" 163 #include "content/public/common/sandbox_type.h"
163 #include "content/public/common/url_utils.h" 164 #include "content/public/common/url_utils.h"
164 #include "content/public/common/web_preferences.h" 165 #include "content/public/common/web_preferences.h"
165 #include "device/usb/public/interfaces/chooser_service.mojom.h" 166 #include "device/usb/public/interfaces/chooser_service.mojom.h"
166 #include "device/usb/public/interfaces/device_manager.mojom.h" 167 #include "device/usb/public/interfaces/device_manager.mojom.h"
167 #include "gin/v8_initializer.h" 168 #include "gin/v8_initializer.h"
168 #include "net/base/mime_util.h" 169 #include "net/base/mime_util.h"
169 #include "net/cookies/canonical_cookie.h" 170 #include "net/cookies/canonical_cookie.h"
170 #include "net/cookies/cookie_options.h" 171 #include "net/cookies/cookie_options.h"
171 #include "net/ssl/ssl_cert_request_info.h" 172 #include "net/ssl/ssl_cert_request_info.h"
(...skipping 2673 matching lines...) Expand 10 before | Expand all | Expand 10 after
2845 void ChromeContentBrowserClient::RegisterInProcessMojoApplications( 2846 void ChromeContentBrowserClient::RegisterInProcessMojoApplications(
2846 StaticMojoApplicationMap* apps) { 2847 StaticMojoApplicationMap* apps) {
2847 #if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) 2848 #if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
2848 content::MojoApplicationInfo app_info; 2849 content::MojoApplicationInfo app_info;
2849 app_info.application_factory = base::Bind(&media::CreateMojoMediaApplication); 2850 app_info.application_factory = base::Bind(&media::CreateMojoMediaApplication);
2850 apps->insert(std::make_pair("mojo:media", app_info)); 2851 apps->insert(std::make_pair("mojo:media", app_info));
2851 #endif 2852 #endif
2852 #if defined(OS_CHROMEOS) 2853 #if defined(OS_CHROMEOS)
2853 #if defined(MOJO_SHELL_CLIENT) 2854 #if defined(MOJO_SHELL_CLIENT)
2854 if (chrome::IsRunningInMash()) { 2855 if (chrome::IsRunningInMash()) {
2855 content::MojoShellConnection::GetForProcess()->MergeService( 2856 content::MojoShellConnection::GetForProcess()->AddConnectionFilter(
2856 base::WrapUnique(new chromeos::ChromeInterfaceFactory)); 2857 base::MakeUnique<chromeos::ChromeInterfaceFactory>());
2857 } 2858 }
2858 #endif // MOJO_SHELL_CLIENT 2859 #endif // MOJO_SHELL_CLIENT
2859 #endif // OS_CHROMEOS 2860 #endif // OS_CHROMEOS
2860 } 2861 }
2861 2862
2862 void ChromeContentBrowserClient::RegisterOutOfProcessMojoApplications( 2863 void ChromeContentBrowserClient::RegisterOutOfProcessMojoApplications(
2863 OutOfProcessMojoApplicationMap* apps) { 2864 OutOfProcessMojoApplicationMap* apps) {
2864 #if defined(ENABLE_MOJO_MEDIA_IN_UTILITY_PROCESS) 2865 #if defined(ENABLE_MOJO_MEDIA_IN_UTILITY_PROCESS)
2865 apps->insert(std::make_pair("mojo:media", 2866 apps->insert(std::make_pair("mojo:media",
2866 base::ASCIIToUTF16("Media App"))); 2867 base::ASCIIToUTF16("Media App")));
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
3046 if (channel <= kMaxDisableEncryptionChannel) { 3047 if (channel <= kMaxDisableEncryptionChannel) {
3047 static const char* const kWebRtcDevSwitchNames[] = { 3048 static const char* const kWebRtcDevSwitchNames[] = {
3048 switches::kDisableWebRtcEncryption, 3049 switches::kDisableWebRtcEncryption,
3049 }; 3050 };
3050 to_command_line->CopySwitchesFrom(from_command_line, 3051 to_command_line->CopySwitchesFrom(from_command_line,
3051 kWebRtcDevSwitchNames, 3052 kWebRtcDevSwitchNames,
3052 arraysize(kWebRtcDevSwitchNames)); 3053 arraysize(kWebRtcDevSwitchNames));
3053 } 3054 }
3054 } 3055 }
3055 #endif // defined(ENABLE_WEBRTC) 3056 #endif // defined(ENABLE_WEBRTC)
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/chrome_interface_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698