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

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

Issue 2143383002: [Translate] Migrate IPCs to Mojo interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add browser tests. No gyp, No unit tests 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
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 #include "chrome/browser/speech/tts_controller.h" 77 #include "chrome/browser/speech/tts_controller.h"
78 #include "chrome/browser/speech/tts_message_filter.h" 78 #include "chrome/browser/speech/tts_message_filter.h"
79 #include "chrome/browser/ssl/ssl_add_certificate.h" 79 #include "chrome/browser/ssl/ssl_add_certificate.h"
80 #include "chrome/browser/ssl/ssl_blocking_page.h" 80 #include "chrome/browser/ssl/ssl_blocking_page.h"
81 #include "chrome/browser/ssl/ssl_cert_reporter.h" 81 #include "chrome/browser/ssl/ssl_cert_reporter.h"
82 #include "chrome/browser/ssl/ssl_client_certificate_selector.h" 82 #include "chrome/browser/ssl/ssl_client_certificate_selector.h"
83 #include "chrome/browser/ssl/ssl_error_handler.h" 83 #include "chrome/browser/ssl/ssl_error_handler.h"
84 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" 84 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h"
85 #include "chrome/browser/tab_contents/tab_util.h" 85 #include "chrome/browser/tab_contents/tab_util.h"
86 #include "chrome/browser/tracing/chrome_tracing_delegate.h" 86 #include "chrome/browser/tracing/chrome_tracing_delegate.h"
87 #include "chrome/browser/translate/chrome_translate_client.h"
87 #include "chrome/browser/ui/blocked_content/blocked_window_params.h" 88 #include "chrome/browser/ui/blocked_content/blocked_window_params.h"
88 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" 89 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h"
89 #include "chrome/browser/ui/browser_navigator.h" 90 #include "chrome/browser/ui/browser_navigator.h"
90 #include "chrome/browser/ui/browser_navigator_params.h" 91 #include "chrome/browser/ui/browser_navigator_params.h"
91 #include "chrome/browser/ui/chrome_select_file_policy.h" 92 #include "chrome/browser/ui/chrome_select_file_policy.h"
92 #include "chrome/browser/ui/sync/sync_promo_ui.h" 93 #include "chrome/browser/ui/sync/sync_promo_ui.h"
93 #include "chrome/browser/ui/tab_contents/chrome_web_contents_view_delegate.h" 94 #include "chrome/browser/ui/tab_contents/chrome_web_contents_view_delegate.h"
94 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" 95 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h"
95 #include "chrome/browser/ui/webui/log_web_ui_url.h" 96 #include "chrome/browser/ui/webui/log_web_ui_url.h"
96 #include "chrome/browser/usb/usb_tab_helper.h" 97 #include "chrome/browser/usb/usb_tab_helper.h"
(...skipping 2732 matching lines...) Expand 10 before | Expand all | Expand 10 after
2829 if (!render_frame_host->GetParent()) { 2830 if (!render_frame_host->GetParent()) {
2830 registry->AddInterface( 2831 registry->AddInterface(
2831 base::Bind(&ChromePasswordManagerClient::BindCredentialManager, 2832 base::Bind(&ChromePasswordManagerClient::BindCredentialManager,
2832 render_frame_host)); 2833 render_frame_host));
2833 } 2834 }
2834 2835
2835 registry->AddInterface( 2836 registry->AddInterface(
2836 base::Bind(&autofill::ContentAutofillDriverFactory::BindAutofillDriver, 2837 base::Bind(&autofill::ContentAutofillDriverFactory::BindAutofillDriver,
2837 render_frame_host)); 2838 render_frame_host));
2838 2839
2840 // Register mojo ContentTranslateDriver service only for main frame.
2841 if (!render_frame_host->GetParent()) {
2842 registry->AddInterface(base::Bind(
2843 &ChromeTranslateClient::BindContentTranslateDriver, render_frame_host));
2844 }
2845
2839 #if BUILDFLAG(ANDROID_JAVA_UI) 2846 #if BUILDFLAG(ANDROID_JAVA_UI)
2840 ChromeServiceRegistrarAndroid::RegisterRenderFrameMojoInterfaces( 2847 ChromeServiceRegistrarAndroid::RegisterRenderFrameMojoInterfaces(
2841 registry, render_frame_host); 2848 registry, render_frame_host);
2842 #endif 2849 #endif
2843 } 2850 }
2844 2851
2845 void ChromeContentBrowserClient::RegisterInProcessMojoApplications( 2852 void ChromeContentBrowserClient::RegisterInProcessMojoApplications(
2846 StaticMojoApplicationMap* apps) { 2853 StaticMojoApplicationMap* apps) {
2847 #if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) 2854 #if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
2848 content::MojoApplicationInfo app_info; 2855 content::MojoApplicationInfo app_info;
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
3046 if (channel <= kMaxDisableEncryptionChannel) { 3053 if (channel <= kMaxDisableEncryptionChannel) {
3047 static const char* const kWebRtcDevSwitchNames[] = { 3054 static const char* const kWebRtcDevSwitchNames[] = {
3048 switches::kDisableWebRtcEncryption, 3055 switches::kDisableWebRtcEncryption,
3049 }; 3056 };
3050 to_command_line->CopySwitchesFrom(from_command_line, 3057 to_command_line->CopySwitchesFrom(from_command_line,
3051 kWebRtcDevSwitchNames, 3058 kWebRtcDevSwitchNames,
3052 arraysize(kWebRtcDevSwitchNames)); 3059 arraysize(kWebRtcDevSwitchNames));
3053 } 3060 }
3054 } 3061 }
3055 #endif // defined(ENABLE_WEBRTC) 3062 #endif // defined(ENABLE_WEBRTC)
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/translate/chrome_translate_client.h » ('j') | chrome/browser/translate/chrome_translate_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698