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

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

Issue 2138263002: Revert of Move content's shell connections to the IO thread (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
« 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"
163 #include "content/public/common/sandbox_type.h" 162 #include "content/public/common/sandbox_type.h"
164 #include "content/public/common/url_utils.h" 163 #include "content/public/common/url_utils.h"
165 #include "content/public/common/web_preferences.h" 164 #include "content/public/common/web_preferences.h"
166 #include "device/usb/public/interfaces/chooser_service.mojom.h" 165 #include "device/usb/public/interfaces/chooser_service.mojom.h"
167 #include "device/usb/public/interfaces/device_manager.mojom.h" 166 #include "device/usb/public/interfaces/device_manager.mojom.h"
168 #include "gin/v8_initializer.h" 167 #include "gin/v8_initializer.h"
169 #include "net/base/mime_util.h" 168 #include "net/base/mime_util.h"
170 #include "net/cookies/canonical_cookie.h" 169 #include "net/cookies/canonical_cookie.h"
171 #include "net/cookies/cookie_options.h" 170 #include "net/cookies/cookie_options.h"
172 #include "net/ssl/ssl_cert_request_info.h" 171 #include "net/ssl/ssl_cert_request_info.h"
(...skipping 2670 matching lines...) Expand 10 before | Expand all | Expand 10 after
2843 void ChromeContentBrowserClient::RegisterInProcessMojoApplications( 2842 void ChromeContentBrowserClient::RegisterInProcessMojoApplications(
2844 StaticMojoApplicationMap* apps) { 2843 StaticMojoApplicationMap* apps) {
2845 #if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) 2844 #if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
2846 content::MojoApplicationInfo app_info; 2845 content::MojoApplicationInfo app_info;
2847 app_info.application_factory = base::Bind(&media::CreateMojoMediaApplication); 2846 app_info.application_factory = base::Bind(&media::CreateMojoMediaApplication);
2848 apps->insert(std::make_pair("mojo:media", app_info)); 2847 apps->insert(std::make_pair("mojo:media", app_info));
2849 #endif 2848 #endif
2850 #if defined(OS_CHROMEOS) 2849 #if defined(OS_CHROMEOS)
2851 #if defined(MOJO_SHELL_CLIENT) 2850 #if defined(MOJO_SHELL_CLIENT)
2852 if (chrome::IsRunningInMash()) { 2851 if (chrome::IsRunningInMash()) {
2853 content::MojoShellConnection::GetForProcess()->AddConnectionFilter( 2852 content::MojoShellConnection::GetForProcess()->MergeService(
2854 base::MakeUnique<chromeos::ChromeInterfaceFactory>()); 2853 base::WrapUnique(new chromeos::ChromeInterfaceFactory));
2855 } 2854 }
2856 #endif // MOJO_SHELL_CLIENT 2855 #endif // MOJO_SHELL_CLIENT
2857 #endif // OS_CHROMEOS 2856 #endif // OS_CHROMEOS
2858 } 2857 }
2859 2858
2860 void ChromeContentBrowserClient::RegisterOutOfProcessMojoApplications( 2859 void ChromeContentBrowserClient::RegisterOutOfProcessMojoApplications(
2861 OutOfProcessMojoApplicationMap* apps) { 2860 OutOfProcessMojoApplicationMap* apps) {
2862 #if defined(ENABLE_MOJO_MEDIA_IN_UTILITY_PROCESS) 2861 #if defined(ENABLE_MOJO_MEDIA_IN_UTILITY_PROCESS)
2863 apps->insert(std::make_pair("mojo:media", 2862 apps->insert(std::make_pair("mojo:media",
2864 base::ASCIIToUTF16("Media App"))); 2863 base::ASCIIToUTF16("Media App")));
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
3044 if (channel <= kMaxDisableEncryptionChannel) { 3043 if (channel <= kMaxDisableEncryptionChannel) {
3045 static const char* const kWebRtcDevSwitchNames[] = { 3044 static const char* const kWebRtcDevSwitchNames[] = {
3046 switches::kDisableWebRtcEncryption, 3045 switches::kDisableWebRtcEncryption,
3047 }; 3046 };
3048 to_command_line->CopySwitchesFrom(from_command_line, 3047 to_command_line->CopySwitchesFrom(from_command_line,
3049 kWebRtcDevSwitchNames, 3048 kWebRtcDevSwitchNames,
3050 arraysize(kWebRtcDevSwitchNames)); 3049 arraysize(kWebRtcDevSwitchNames));
3051 } 3050 }
3052 } 3051 }
3053 #endif // defined(ENABLE_WEBRTC) 3052 #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