Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 2971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2982 } | 2982 } |
| 2983 | 2983 |
| 2984 void ChromeContentBrowserClient::RegisterInProcessMojoApplications( | 2984 void ChromeContentBrowserClient::RegisterInProcessMojoApplications( |
| 2985 StaticMojoApplicationMap* apps) { | 2985 StaticMojoApplicationMap* apps) { |
| 2986 #if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) | 2986 #if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) |
| 2987 content::MojoApplicationInfo app_info; | 2987 content::MojoApplicationInfo app_info; |
| 2988 app_info.application_factory = base::Bind(&media::CreateMojoMediaApplication); | 2988 app_info.application_factory = base::Bind(&media::CreateMojoMediaApplication); |
| 2989 apps->insert(std::make_pair("mojo:media", app_info)); | 2989 apps->insert(std::make_pair("mojo:media", app_info)); |
| 2990 #endif | 2990 #endif |
| 2991 #if defined(OS_CHROMEOS) | 2991 #if defined(OS_CHROMEOS) |
| 2992 if (chrome::IsRunningInMash()) { | 2992 if (chrome::IsRunningInMash()) { |
|
sky
2016/09/29 16:34:05
I don't think there is a reason this needs to be c
| |
| 2993 // TODO - would need to register SystemTrayClient, even if not running in | |
| 2994 // mash. I'm not sure how to do that. | |
| 2993 content::MojoShellConnection::GetForProcess()->AddConnectionFilter( | 2995 content::MojoShellConnection::GetForProcess()->AddConnectionFilter( |
| 2994 base::MakeUnique<chromeos::ChromeInterfaceFactory>()); | 2996 base::MakeUnique<chromeos::ChromeInterfaceFactory>()); |
| 2995 } | 2997 } |
| 2996 #endif // OS_CHROMEOS | 2998 #endif // OS_CHROMEOS |
| 2997 } | 2999 } |
| 2998 | 3000 |
| 2999 void ChromeContentBrowserClient::RegisterOutOfProcessMojoApplications( | 3001 void ChromeContentBrowserClient::RegisterOutOfProcessMojoApplications( |
| 3000 OutOfProcessMojoApplicationMap* apps) { | 3002 OutOfProcessMojoApplicationMap* apps) { |
| 3001 #if defined(ENABLE_MOJO_MEDIA_IN_UTILITY_PROCESS) | 3003 #if defined(ENABLE_MOJO_MEDIA_IN_UTILITY_PROCESS) |
| 3002 apps->insert(std::make_pair("mojo:media", | 3004 apps->insert(std::make_pair("mojo:media", |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3222 if (channel <= kMaxDisableEncryptionChannel) { | 3224 if (channel <= kMaxDisableEncryptionChannel) { |
| 3223 static const char* const kWebRtcDevSwitchNames[] = { | 3225 static const char* const kWebRtcDevSwitchNames[] = { |
| 3224 switches::kDisableWebRtcEncryption, | 3226 switches::kDisableWebRtcEncryption, |
| 3225 }; | 3227 }; |
| 3226 to_command_line->CopySwitchesFrom(from_command_line, | 3228 to_command_line->CopySwitchesFrom(from_command_line, |
| 3227 kWebRtcDevSwitchNames, | 3229 kWebRtcDevSwitchNames, |
| 3228 arraysize(kWebRtcDevSwitchNames)); | 3230 arraysize(kWebRtcDevSwitchNames)); |
| 3229 } | 3231 } |
| 3230 } | 3232 } |
| 3231 #endif // defined(ENABLE_WEBRTC) | 3233 #endif // defined(ENABLE_WEBRTC) |
| OLD | NEW |