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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_recorder_impl.h" |
138 #include "components/rappor/rappor_utils.h" | 138 #include "components/rappor/rappor_utils.h" |
| 139 #include "components/reporting/content/browser/reporting_service_factory.h" |
| 140 #include "components/reporting/core/browser/reporting_service.h" |
139 #include "components/security_interstitials/core/ssl_error_ui.h" | 141 #include "components/security_interstitials/core/ssl_error_ui.h" |
140 #include "components/signin/core/common/profile_management_switches.h" | 142 #include "components/signin/core/common/profile_management_switches.h" |
141 #include "components/startup_metric_utils/browser/startup_metric_host_impl.h" | 143 #include "components/startup_metric_utils/browser/startup_metric_host_impl.h" |
142 #include "components/subresource_filter/content/browser/content_subresource_filt
er_driver_factory.h" | 144 #include "components/subresource_filter/content/browser/content_subresource_filt
er_driver_factory.h" |
143 #include "components/subresource_filter/content/browser/subresource_filter_navig
ation_throttle.h" | 145 #include "components/subresource_filter/content/browser/subresource_filter_navig
ation_throttle.h" |
144 #include "components/translate/core/common/translate_switches.h" | 146 #include "components/translate/core/common/translate_switches.h" |
145 #include "components/url_formatter/url_fixer.h" | 147 #include "components/url_formatter/url_fixer.h" |
146 #include "components/variations/variations_associated_data.h" | 148 #include "components/variations/variations_associated_data.h" |
147 #include "components/version_info/version_info.h" | 149 #include "components/version_info/version_info.h" |
148 #include "content/public/browser/browser_child_process_host.h" | 150 #include "content/public/browser/browser_child_process_host.h" |
(...skipping 2749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2898 registry->AddInterface( | 2900 registry->AddInterface( |
2899 base::Bind(&rappor::RapporRecorderImpl::Create, | 2901 base::Bind(&rappor::RapporRecorderImpl::Create, |
2900 g_browser_process->rappor_service()), | 2902 g_browser_process->rappor_service()), |
2901 ui_task_runner); | 2903 ui_task_runner); |
2902 | 2904 |
2903 #if defined(OS_CHROMEOS) | 2905 #if defined(OS_CHROMEOS) |
2904 registry->AddInterface<metrics::mojom::LeakDetector>( | 2906 registry->AddInterface<metrics::mojom::LeakDetector>( |
2905 base::Bind(&metrics::LeakDetectorRemoteController::Create), | 2907 base::Bind(&metrics::LeakDetectorRemoteController::Create), |
2906 ui_task_runner); | 2908 ui_task_runner); |
2907 #endif | 2909 #endif |
| 2910 |
| 2911 registry->AddInterface<reporting::mojom::ReportingService>(base::Bind( |
| 2912 &reporting::ReportingService::AddBinding, |
| 2913 base::Unretained(reporting::ReportingServiceFactory::GetForBrowserContext( |
| 2914 render_process_host->GetBrowserContext(), |
| 2915 /* create= */ true)))); |
2908 } | 2916 } |
2909 | 2917 |
2910 void ChromeContentBrowserClient::ExposeInterfacesToMediaService( | 2918 void ChromeContentBrowserClient::ExposeInterfacesToMediaService( |
2911 service_manager::InterfaceRegistry* registry, | 2919 service_manager::InterfaceRegistry* registry, |
2912 content::RenderFrameHost* render_frame_host) { | 2920 content::RenderFrameHost* render_frame_host) { |
2913 // TODO(xhwang): Only register this when ENABLE_MOJO_MEDIA. | 2921 // TODO(xhwang): Only register this when ENABLE_MOJO_MEDIA. |
2914 #if defined(OS_CHROMEOS) | 2922 #if defined(OS_CHROMEOS) |
2915 registry->AddInterface( | 2923 registry->AddInterface( |
2916 base::Bind(&chromeos::attestation::PlatformVerificationImpl::Create, | 2924 base::Bind(&chromeos::attestation::PlatformVerificationImpl::Create, |
2917 render_frame_host)); | 2925 render_frame_host)); |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3249 kWebRtcDevSwitchNames, | 3257 kWebRtcDevSwitchNames, |
3250 arraysize(kWebRtcDevSwitchNames)); | 3258 arraysize(kWebRtcDevSwitchNames)); |
3251 } | 3259 } |
3252 } | 3260 } |
3253 #endif // defined(ENABLE_WEBRTC) | 3261 #endif // defined(ENABLE_WEBRTC) |
3254 | 3262 |
3255 std::unique_ptr<content::MemoryCoordinatorDelegate> | 3263 std::unique_ptr<content::MemoryCoordinatorDelegate> |
3256 ChromeContentBrowserClient::GetMemoryCoordinatorDelegate() { | 3264 ChromeContentBrowserClient::GetMemoryCoordinatorDelegate() { |
3257 return memory::ChromeMemoryCoordinatorDelegate::Create(); | 3265 return memory::ChromeMemoryCoordinatorDelegate::Create(); |
3258 } | 3266 } |
OLD | NEW |