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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 #include "chrome/browser/chrome_browser_main_posix.h" | 221 #include "chrome/browser/chrome_browser_main_posix.h" |
222 #endif | 222 #endif |
223 | 223 |
224 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 224 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
225 #include "base/debug/leak_annotations.h" | 225 #include "base/debug/leak_annotations.h" |
226 #include "components/crash/content/app/breakpad_linux.h" | 226 #include "components/crash/content/app/breakpad_linux.h" |
227 #include "components/crash/content/browser/crash_handler_host_linux.h" | 227 #include "components/crash/content/browser/crash_handler_host_linux.h" |
228 #endif | 228 #endif |
229 | 229 |
230 #if BUILDFLAG(ANDROID_JAVA_UI) | 230 #if BUILDFLAG(ANDROID_JAVA_UI) |
231 #include "chrome/browser/android/mojo/chrome_service_registrar_android.h" | 231 #include "chrome/browser/android/mojo/chrome_interface_registrar_android.h" |
232 #include "chrome/browser/android/ntp/new_tab_page_url_handler.h" | 232 #include "chrome/browser/android/ntp/new_tab_page_url_handler.h" |
233 #include "chrome/browser/android/service_tab_launcher.h" | 233 #include "chrome/browser/android/service_tab_launcher.h" |
234 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h" | 234 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h" |
235 #endif | 235 #endif |
236 | 236 |
237 #if defined(OS_ANDROID) | 237 #if defined(OS_ANDROID) |
238 #include "ui/base/ui_base_paths.h" | 238 #include "ui/base/ui_base_paths.h" |
239 #include "ui/gfx/android/device_display_info.h" | 239 #include "ui/gfx/android/device_display_info.h" |
240 #endif | 240 #endif |
241 | 241 |
(...skipping 2576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2818 registry->AddInterface( | 2818 registry->AddInterface( |
2819 base::Bind(&ChromePasswordManagerClient::BindCredentialManager, | 2819 base::Bind(&ChromePasswordManagerClient::BindCredentialManager, |
2820 render_frame_host)); | 2820 render_frame_host)); |
2821 } | 2821 } |
2822 | 2822 |
2823 registry->AddInterface( | 2823 registry->AddInterface( |
2824 base::Bind(&autofill::ContentAutofillDriverFactory::BindAutofillDriver, | 2824 base::Bind(&autofill::ContentAutofillDriverFactory::BindAutofillDriver, |
2825 render_frame_host)); | 2825 render_frame_host)); |
2826 | 2826 |
2827 #if BUILDFLAG(ANDROID_JAVA_UI) | 2827 #if BUILDFLAG(ANDROID_JAVA_UI) |
2828 ChromeServiceRegistrarAndroid::RegisterRenderFrameMojoInterfaces( | 2828 ChromeInterfaceRegistrarAndroid::ExposeInterfacesToFrame( |
2829 registry, render_frame_host); | 2829 registry, render_frame_host); |
2830 #endif | 2830 #endif |
2831 } | 2831 } |
2832 | 2832 |
2833 void ChromeContentBrowserClient::RegisterInProcessMojoApplications( | 2833 void ChromeContentBrowserClient::RegisterInProcessMojoApplications( |
2834 StaticMojoApplicationMap* apps) { | 2834 StaticMojoApplicationMap* apps) { |
2835 #if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) | 2835 #if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) |
2836 content::MojoApplicationInfo app_info; | 2836 content::MojoApplicationInfo app_info; |
2837 app_info.application_factory = base::Bind(&media::CreateMojoMediaApplication); | 2837 app_info.application_factory = base::Bind(&media::CreateMojoMediaApplication); |
2838 apps->insert(std::make_pair("mojo:media", app_info)); | 2838 apps->insert(std::make_pair("mojo:media", app_info)); |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3049 if (channel <= kMaxDisableEncryptionChannel) { | 3049 if (channel <= kMaxDisableEncryptionChannel) { |
3050 static const char* const kWebRtcDevSwitchNames[] = { | 3050 static const char* const kWebRtcDevSwitchNames[] = { |
3051 switches::kDisableWebRtcEncryption, | 3051 switches::kDisableWebRtcEncryption, |
3052 }; | 3052 }; |
3053 to_command_line->CopySwitchesFrom(from_command_line, | 3053 to_command_line->CopySwitchesFrom(from_command_line, |
3054 kWebRtcDevSwitchNames, | 3054 kWebRtcDevSwitchNames, |
3055 arraysize(kWebRtcDevSwitchNames)); | 3055 arraysize(kWebRtcDevSwitchNames)); |
3056 } | 3056 } |
3057 } | 3057 } |
3058 #endif // defined(ENABLE_WEBRTC) | 3058 #endif // defined(ENABLE_WEBRTC) |
OLD | NEW |