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

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

Issue 2191033002: Split ServiceRegistryAndroid into InterfaceRegistryAndroid and InterfaceProviderAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 2575 matching lines...) Expand 10 before | Expand all | Expand 10 after
2817 registry->AddInterface( 2817 registry->AddInterface(
2818 base::Bind(&ChromePasswordManagerClient::BindCredentialManager, 2818 base::Bind(&ChromePasswordManagerClient::BindCredentialManager,
2819 render_frame_host)); 2819 render_frame_host));
2820 } 2820 }
2821 2821
2822 registry->AddInterface( 2822 registry->AddInterface(
2823 base::Bind(&autofill::ContentAutofillDriverFactory::BindAutofillDriver, 2823 base::Bind(&autofill::ContentAutofillDriverFactory::BindAutofillDriver,
2824 render_frame_host)); 2824 render_frame_host));
2825 2825
2826 #if BUILDFLAG(ANDROID_JAVA_UI) 2826 #if BUILDFLAG(ANDROID_JAVA_UI)
2827 ChromeServiceRegistrarAndroid::RegisterRenderFrameMojoInterfaces( 2827 ChromeInterfaceRegistrarAndroid::ExposeInterfacesToFrame(
2828 registry, render_frame_host); 2828 registry, render_frame_host);
2829 #endif 2829 #endif
2830 } 2830 }
2831 2831
2832 void ChromeContentBrowserClient::RegisterInProcessMojoApplications( 2832 void ChromeContentBrowserClient::RegisterInProcessMojoApplications(
2833 StaticMojoApplicationMap* apps) { 2833 StaticMojoApplicationMap* apps) {
2834 #if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) 2834 #if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
2835 content::MojoApplicationInfo app_info; 2835 content::MojoApplicationInfo app_info;
2836 app_info.application_factory = base::Bind(&media::CreateMojoMediaApplication); 2836 app_info.application_factory = base::Bind(&media::CreateMojoMediaApplication);
2837 apps->insert(std::make_pair("mojo:media", app_info)); 2837 apps->insert(std::make_pair("mojo:media", app_info));
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
3048 if (channel <= kMaxDisableEncryptionChannel) { 3048 if (channel <= kMaxDisableEncryptionChannel) {
3049 static const char* const kWebRtcDevSwitchNames[] = { 3049 static const char* const kWebRtcDevSwitchNames[] = {
3050 switches::kDisableWebRtcEncryption, 3050 switches::kDisableWebRtcEncryption,
3051 }; 3051 };
3052 to_command_line->CopySwitchesFrom(from_command_line, 3052 to_command_line->CopySwitchesFrom(from_command_line,
3053 kWebRtcDevSwitchNames, 3053 kWebRtcDevSwitchNames,
3054 arraysize(kWebRtcDevSwitchNames)); 3054 arraysize(kWebRtcDevSwitchNames));
3055 } 3055 }
3056 } 3056 }
3057 #endif // defined(ENABLE_WEBRTC) 3057 #endif // defined(ENABLE_WEBRTC)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698