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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #include "chrome/browser/character_encoding.h" | 42 #include "chrome/browser/character_encoding.h" |
43 #include "chrome/browser/chrome_content_browser_client_parts.h" | 43 #include "chrome/browser/chrome_content_browser_client_parts.h" |
44 #include "chrome/browser/chrome_net_benchmarking_message_filter.h" | 44 #include "chrome/browser/chrome_net_benchmarking_message_filter.h" |
45 #include "chrome/browser/chrome_quota_permission_context.h" | 45 #include "chrome/browser/chrome_quota_permission_context.h" |
46 #include "chrome/browser/content_settings/cookie_settings_factory.h" | 46 #include "chrome/browser/content_settings/cookie_settings_factory.h" |
47 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" | 47 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
48 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 48 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
49 #include "chrome/browser/defaults.h" | 49 #include "chrome/browser/defaults.h" |
50 #include "chrome/browser/download/download_prefs.h" | 50 #include "chrome/browser/download/download_prefs.h" |
51 #include "chrome/browser/engagement/site_engagement_eviction_policy.h" | 51 #include "chrome/browser/engagement/site_engagement_eviction_policy.h" |
| 52 #include "chrome/browser/field_trial_recorder.h" |
52 #include "chrome/browser/font_family_cache.h" | 53 #include "chrome/browser/font_family_cache.h" |
53 #include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h" | 54 #include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h" |
54 #include "chrome/browser/memory/chrome_memory_coordinator_delegate.h" | 55 #include "chrome/browser/memory/chrome_memory_coordinator_delegate.h" |
55 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h" | 56 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h" |
56 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h" | 57 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h" |
57 #include "chrome/browser/notifications/platform_notification_service_impl.h" | 58 #include "chrome/browser/notifications/platform_notification_service_impl.h" |
58 #include "chrome/browser/page_load_metrics/metrics_navigation_throttle.h" | 59 #include "chrome/browser/page_load_metrics/metrics_navigation_throttle.h" |
59 #include "chrome/browser/password_manager/chrome_password_manager_client.h" | 60 #include "chrome/browser/password_manager/chrome_password_manager_client.h" |
60 #include "chrome/browser/payments/payment_request_impl.h" | 61 #include "chrome/browser/payments/payment_request_impl.h" |
61 #include "chrome/browser/permissions/permission_context_base.h" | 62 #include "chrome/browser/permissions/permission_context_base.h" |
(...skipping 2867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2929 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner = | 2930 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner = |
2930 content::BrowserThread::GetTaskRunnerForThread( | 2931 content::BrowserThread::GetTaskRunnerForThread( |
2931 content::BrowserThread::UI); | 2932 content::BrowserThread::UI); |
2932 registry->AddInterface( | 2933 registry->AddInterface( |
2933 base::Bind(&startup_metric_utils::StartupMetricHostImpl::Create), | 2934 base::Bind(&startup_metric_utils::StartupMetricHostImpl::Create), |
2934 ui_task_runner); | 2935 ui_task_runner); |
2935 registry->AddInterface( | 2936 registry->AddInterface( |
2936 base::Bind(&BudgetServiceImpl::Create, render_process_host->GetID()), | 2937 base::Bind(&BudgetServiceImpl::Create, render_process_host->GetID()), |
2937 ui_task_runner); | 2938 ui_task_runner); |
2938 registry->AddInterface( | 2939 registry->AddInterface( |
| 2940 base::Bind(&FieldTrialRecorder::Create), |
| 2941 ui_task_runner); |
| 2942 registry->AddInterface( |
2939 base::Bind(&rappor::RapporRecorderImpl::Create, | 2943 base::Bind(&rappor::RapporRecorderImpl::Create, |
2940 g_browser_process->rappor_service()), | 2944 g_browser_process->rappor_service()), |
2941 ui_task_runner); | 2945 ui_task_runner); |
2942 | 2946 |
2943 #if defined(OS_CHROMEOS) | 2947 #if defined(OS_CHROMEOS) |
2944 registry->AddInterface<metrics::mojom::LeakDetector>( | 2948 registry->AddInterface<metrics::mojom::LeakDetector>( |
2945 base::Bind(&metrics::LeakDetectorRemoteController::Create), | 2949 base::Bind(&metrics::LeakDetectorRemoteController::Create), |
2946 ui_task_runner); | 2950 ui_task_runner); |
2947 #endif | 2951 #endif |
2948 } | 2952 } |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3299 render_frame_host, std::move(source), std::move(request)); | 3303 render_frame_host, std::move(source), std::move(request)); |
3300 #else | 3304 #else |
3301 // Chrome's media remoting implementation depends on the Media Router | 3305 // Chrome's media remoting implementation depends on the Media Router |
3302 // infrastructure to identify remote sinks and provide the user interface for | 3306 // infrastructure to identify remote sinks and provide the user interface for |
3303 // sink selection. In the case where the Media Router is not present, simply | 3307 // sink selection. In the case where the Media Router is not present, simply |
3304 // drop the interface request. This will prevent code paths for media remoting | 3308 // drop the interface request. This will prevent code paths for media remoting |
3305 // in the renderer process from activating. | 3309 // in the renderer process from activating. |
3306 #endif | 3310 #endif |
3307 } | 3311 } |
3308 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) | 3312 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) |
OLD | NEW |