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

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

Issue 2270333002: Reland: [Autofill] Migrate ContentPasswordManagerDriver<-->Password{Autofill,Generation}Agent IPCs … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 3 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/password_manager/chrome_password_manager_client_unittest.cc » ('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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 #include "components/content_settings/core/browser/host_content_settings_map.h" 120 #include "components/content_settings/core/browser/host_content_settings_map.h"
121 #include "components/content_settings/core/common/content_settings.h" 121 #include "components/content_settings/core/common/content_settings.h"
122 #include "components/content_settings/core/common/content_settings_types.h" 122 #include "components/content_settings/core/common/content_settings_types.h"
123 #include "components/data_reduction_proxy/content/browser/data_reduction_proxy_m essage_filter.h" 123 #include "components/data_reduction_proxy/content/browser/data_reduction_proxy_m essage_filter.h"
124 #include "components/dom_distiller/core/dom_distiller_switches.h" 124 #include "components/dom_distiller/core/dom_distiller_switches.h"
125 #include "components/dom_distiller/core/url_constants.h" 125 #include "components/dom_distiller/core/url_constants.h"
126 #include "components/error_page/common/error_page_switches.h" 126 #include "components/error_page/common/error_page_switches.h"
127 #include "components/google/core/browser/google_util.h" 127 #include "components/google/core/browser/google_util.h"
128 #include "components/metrics/client_info.h" 128 #include "components/metrics/client_info.h"
129 #include "components/net_log/chrome_net_log.h" 129 #include "components/net_log/chrome_net_log.h"
130 #include "components/password_manager/content/browser/content_password_manager_d river_factory.h"
130 #include "components/pref_registry/pref_registry_syncable.h" 131 #include "components/pref_registry/pref_registry_syncable.h"
131 #include "components/prefs/pref_service.h" 132 #include "components/prefs/pref_service.h"
132 #include "components/prefs/scoped_user_pref_update.h" 133 #include "components/prefs/scoped_user_pref_update.h"
133 #include "components/rappor/rappor_utils.h" 134 #include "components/rappor/rappor_utils.h"
134 #include "components/security_interstitials/core/ssl_error_ui.h" 135 #include "components/security_interstitials/core/ssl_error_ui.h"
135 #include "components/signin/core/common/profile_management_switches.h" 136 #include "components/signin/core/common/profile_management_switches.h"
136 #include "components/startup_metric_utils/browser/startup_metric_host_impl.h" 137 #include "components/startup_metric_utils/browser/startup_metric_host_impl.h"
137 #include "components/subresource_filter/content/browser/content_subresource_filt er_driver_factory.h" 138 #include "components/subresource_filter/content/browser/content_subresource_filt er_driver_factory.h"
138 #include "components/subresource_filter/content/browser/subresource_filter_navig ation_throttle.h" 139 #include "components/subresource_filter/content/browser/subresource_filter_navig ation_throttle.h"
139 #include "components/translate/core/common/translate_switches.h" 140 #include "components/translate/core/common/translate_switches.h"
(...skipping 2787 matching lines...) Expand 10 before | Expand all | Expand 10 after
2927 render_frame_host)); 2928 render_frame_host));
2928 // Register mojo ContentTranslateDriver interface only for main frame. 2929 // Register mojo ContentTranslateDriver interface only for main frame.
2929 registry->AddInterface(base::Bind( 2930 registry->AddInterface(base::Bind(
2930 &ChromeTranslateClient::BindContentTranslateDriver, render_frame_host)); 2931 &ChromeTranslateClient::BindContentTranslateDriver, render_frame_host));
2931 } 2932 }
2932 2933
2933 registry->AddInterface( 2934 registry->AddInterface(
2934 base::Bind(&autofill::ContentAutofillDriverFactory::BindAutofillDriver, 2935 base::Bind(&autofill::ContentAutofillDriverFactory::BindAutofillDriver,
2935 render_frame_host)); 2936 render_frame_host));
2936 2937
2938 registry->AddInterface(
2939 base::Bind(&password_manager::ContentPasswordManagerDriverFactory::
2940 BindPasswordManagerDriver,
2941 render_frame_host));
2942
2937 #if BUILDFLAG(ANDROID_JAVA_UI) 2943 #if BUILDFLAG(ANDROID_JAVA_UI)
2938 ChromeInterfaceRegistrarAndroid::ExposeInterfacesToFrame( 2944 ChromeInterfaceRegistrarAndroid::ExposeInterfacesToFrame(
2939 registry, render_frame_host); 2945 registry, render_frame_host);
2940 #endif 2946 #endif
2941 } 2947 }
2942 2948
2943 void ChromeContentBrowserClient::ExposeInterfacesToGpuProcess( 2949 void ChromeContentBrowserClient::ExposeInterfacesToGpuProcess(
2944 shell::InterfaceRegistry* registry, 2950 shell::InterfaceRegistry* registry,
2945 content::GpuProcessHost* render_process_host) { 2951 content::GpuProcessHost* render_process_host) {
2946 } 2952 }
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
3172 if (channel <= kMaxDisableEncryptionChannel) { 3178 if (channel <= kMaxDisableEncryptionChannel) {
3173 static const char* const kWebRtcDevSwitchNames[] = { 3179 static const char* const kWebRtcDevSwitchNames[] = {
3174 switches::kDisableWebRtcEncryption, 3180 switches::kDisableWebRtcEncryption,
3175 }; 3181 };
3176 to_command_line->CopySwitchesFrom(from_command_line, 3182 to_command_line->CopySwitchesFrom(from_command_line,
3177 kWebRtcDevSwitchNames, 3183 kWebRtcDevSwitchNames,
3178 arraysize(kWebRtcDevSwitchNames)); 3184 arraysize(kWebRtcDevSwitchNames));
3179 } 3185 }
3180 } 3186 }
3181 #endif // defined(ENABLE_WEBRTC) 3187 #endif // defined(ENABLE_WEBRTC)
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/password_manager/chrome_password_manager_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698