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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 #include "components/dom_distiller/core/url_constants.h" | 127 #include "components/dom_distiller/core/url_constants.h" |
128 #include "components/error_page/common/error_page_switches.h" | 128 #include "components/error_page/common/error_page_switches.h" |
129 #include "components/google/core/browser/google_util.h" | 129 #include "components/google/core/browser/google_util.h" |
130 #include "components/metrics/call_stack_profile_collector.h" | 130 #include "components/metrics/call_stack_profile_collector.h" |
131 #include "components/metrics/client_info.h" | 131 #include "components/metrics/client_info.h" |
132 #include "components/net_log/chrome_net_log.h" | 132 #include "components/net_log/chrome_net_log.h" |
133 #include "components/password_manager/content/browser/content_password_manager_d
river_factory.h" | 133 #include "components/password_manager/content/browser/content_password_manager_d
river_factory.h" |
134 #include "components/pref_registry/pref_registry_syncable.h" | 134 #include "components/pref_registry/pref_registry_syncable.h" |
135 #include "components/prefs/pref_service.h" | 135 #include "components/prefs/pref_service.h" |
136 #include "components/prefs/scoped_user_pref_update.h" | 136 #include "components/prefs/scoped_user_pref_update.h" |
| 137 #include "components/rappor/rappor_recorder_impl.h" |
137 #include "components/rappor/rappor_utils.h" | 138 #include "components/rappor/rappor_utils.h" |
138 #include "components/security_interstitials/core/ssl_error_ui.h" | 139 #include "components/security_interstitials/core/ssl_error_ui.h" |
139 #include "components/signin/core/common/profile_management_switches.h" | 140 #include "components/signin/core/common/profile_management_switches.h" |
140 #include "components/startup_metric_utils/browser/startup_metric_host_impl.h" | 141 #include "components/startup_metric_utils/browser/startup_metric_host_impl.h" |
141 #include "components/subresource_filter/content/browser/content_subresource_filt
er_driver_factory.h" | 142 #include "components/subresource_filter/content/browser/content_subresource_filt
er_driver_factory.h" |
142 #include "components/subresource_filter/content/browser/subresource_filter_navig
ation_throttle.h" | 143 #include "components/subresource_filter/content/browser/subresource_filter_navig
ation_throttle.h" |
143 #include "components/translate/core/common/translate_switches.h" | 144 #include "components/translate/core/common/translate_switches.h" |
144 #include "components/url_formatter/url_fixer.h" | 145 #include "components/url_formatter/url_fixer.h" |
145 #include "components/variations/variations_associated_data.h" | 146 #include "components/variations/variations_associated_data.h" |
146 #include "components/version_info/version_info.h" | 147 #include "components/version_info/version_info.h" |
(...skipping 2752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2899 content::RenderProcessHost* render_process_host) { | 2900 content::RenderProcessHost* render_process_host) { |
2900 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner = | 2901 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner = |
2901 content::BrowserThread::GetTaskRunnerForThread( | 2902 content::BrowserThread::GetTaskRunnerForThread( |
2902 content::BrowserThread::UI); | 2903 content::BrowserThread::UI); |
2903 registry->AddInterface( | 2904 registry->AddInterface( |
2904 base::Bind(&startup_metric_utils::StartupMetricHostImpl::Create), | 2905 base::Bind(&startup_metric_utils::StartupMetricHostImpl::Create), |
2905 ui_task_runner); | 2906 ui_task_runner); |
2906 registry->AddInterface( | 2907 registry->AddInterface( |
2907 base::Bind(&BudgetServiceImpl::Create, render_process_host->GetID()), | 2908 base::Bind(&BudgetServiceImpl::Create, render_process_host->GetID()), |
2908 ui_task_runner); | 2909 ui_task_runner); |
| 2910 registry->AddInterface( |
| 2911 base::Bind(&rappor::RapporRecorderImpl::Create, |
| 2912 g_browser_process->rappor_service()), |
| 2913 ui_task_runner); |
2909 | 2914 |
2910 #if defined(OS_CHROMEOS) | 2915 #if defined(OS_CHROMEOS) |
2911 registry->AddInterface<metrics::mojom::LeakDetector>( | 2916 registry->AddInterface<metrics::mojom::LeakDetector>( |
2912 base::Bind(&metrics::LeakDetectorRemoteController::Create), | 2917 base::Bind(&metrics::LeakDetectorRemoteController::Create), |
2913 ui_task_runner); | 2918 ui_task_runner); |
2914 #endif | 2919 #endif |
2915 } | 2920 } |
2916 | 2921 |
2917 void ChromeContentBrowserClient::ExposeInterfacesToMediaService( | 2922 void ChromeContentBrowserClient::ExposeInterfacesToMediaService( |
2918 shell::InterfaceRegistry* registry, | 2923 shell::InterfaceRegistry* registry, |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3247 if (channel <= kMaxDisableEncryptionChannel) { | 3252 if (channel <= kMaxDisableEncryptionChannel) { |
3248 static const char* const kWebRtcDevSwitchNames[] = { | 3253 static const char* const kWebRtcDevSwitchNames[] = { |
3249 switches::kDisableWebRtcEncryption, | 3254 switches::kDisableWebRtcEncryption, |
3250 }; | 3255 }; |
3251 to_command_line->CopySwitchesFrom(from_command_line, | 3256 to_command_line->CopySwitchesFrom(from_command_line, |
3252 kWebRtcDevSwitchNames, | 3257 kWebRtcDevSwitchNames, |
3253 arraysize(kWebRtcDevSwitchNames)); | 3258 arraysize(kWebRtcDevSwitchNames)); |
3254 } | 3259 } |
3255 } | 3260 } |
3256 #endif // defined(ENABLE_WEBRTC) | 3261 #endif // defined(ENABLE_WEBRTC) |
OLD | NEW |