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 28 matching lines...) Expand all Loading... |
39 #include "chrome/browser/browsing_data/browsing_data_remover_factory.h" | 39 #include "chrome/browser/browsing_data/browsing_data_remover_factory.h" |
40 #include "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h" | 40 #include "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h" |
41 #include "chrome/browser/budget_service/budget_service_impl.h" | 41 #include "chrome/browser/budget_service/budget_service_impl.h" |
42 #include "chrome/browser/chrome_content_browser_client_parts.h" | 42 #include "chrome/browser/chrome_content_browser_client_parts.h" |
43 #include "chrome/browser/chrome_quota_permission_context.h" | 43 #include "chrome/browser/chrome_quota_permission_context.h" |
44 #include "chrome/browser/content_settings/cookie_settings_factory.h" | 44 #include "chrome/browser/content_settings/cookie_settings_factory.h" |
45 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" | 45 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
46 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 46 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
47 #include "chrome/browser/defaults.h" | 47 #include "chrome/browser/defaults.h" |
48 #include "chrome/browser/download/download_prefs.h" | 48 #include "chrome/browser/download/download_prefs.h" |
49 #include "chrome/browser/field_trial_recorder.h" | |
50 #include "chrome/browser/font_family_cache.h" | 49 #include "chrome/browser/font_family_cache.h" |
51 #include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h" | 50 #include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h" |
52 #include "chrome/browser/memory/chrome_memory_coordinator_delegate.h" | 51 #include "chrome/browser/memory/chrome_memory_coordinator_delegate.h" |
53 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h" | 52 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h" |
54 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h" | 53 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h" |
55 #include "chrome/browser/net_benchmarking.h" | 54 #include "chrome/browser/net_benchmarking.h" |
56 #include "chrome/browser/notifications/platform_notification_service_impl.h" | 55 #include "chrome/browser/notifications/platform_notification_service_impl.h" |
57 #include "chrome/browser/page_load_metrics/metrics_navigation_throttle.h" | 56 #include "chrome/browser/page_load_metrics/metrics_navigation_throttle.h" |
58 #include "chrome/browser/password_manager/chrome_password_manager_client.h" | 57 #include "chrome/browser/password_manager/chrome_password_manager_client.h" |
59 #include "chrome/browser/permissions/permission_context_base.h" | 58 #include "chrome/browser/permissions/permission_context_base.h" |
(...skipping 2998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3058 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner = | 3057 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner = |
3059 content::BrowserThread::GetTaskRunnerForThread( | 3058 content::BrowserThread::GetTaskRunnerForThread( |
3060 content::BrowserThread::UI); | 3059 content::BrowserThread::UI); |
3061 registry->AddInterface( | 3060 registry->AddInterface( |
3062 base::Bind(&startup_metric_utils::StartupMetricHostImpl::Create), | 3061 base::Bind(&startup_metric_utils::StartupMetricHostImpl::Create), |
3063 ui_task_runner); | 3062 ui_task_runner); |
3064 registry->AddInterface( | 3063 registry->AddInterface( |
3065 base::Bind(&BudgetServiceImpl::Create, render_process_host->GetID()), | 3064 base::Bind(&BudgetServiceImpl::Create, render_process_host->GetID()), |
3066 ui_task_runner); | 3065 ui_task_runner); |
3067 registry->AddInterface( | 3066 registry->AddInterface( |
3068 base::Bind(&FieldTrialRecorder::Create), | |
3069 ui_task_runner); | |
3070 registry->AddInterface( | |
3071 base::Bind(&rappor::RapporRecorderImpl::Create, | 3067 base::Bind(&rappor::RapporRecorderImpl::Create, |
3072 g_browser_process->rappor_service()), | 3068 g_browser_process->rappor_service()), |
3073 ui_task_runner); | 3069 ui_task_runner); |
3074 if (NetBenchmarking::CheckBenchmarkingEnabled()) { | 3070 if (NetBenchmarking::CheckBenchmarkingEnabled()) { |
3075 Profile* profile = | 3071 Profile* profile = |
3076 Profile::FromBrowserContext(render_process_host->GetBrowserContext()); | 3072 Profile::FromBrowserContext(render_process_host->GetBrowserContext()); |
3077 net::URLRequestContextGetter* context = | 3073 net::URLRequestContextGetter* context = |
3078 render_process_host->GetStoragePartition()->GetURLRequestContext(); | 3074 render_process_host->GetStoragePartition()->GetURLRequestContext(); |
3079 registry->AddInterface( | 3075 registry->AddInterface( |
3080 base::Bind(&NetBenchmarking::Create, profile, context)); | 3076 base::Bind(&NetBenchmarking::Create, profile, context)); |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3555 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { | 3551 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { |
3556 return variations::GetVariationParamValue( | 3552 return variations::GetVariationParamValue( |
3557 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; | 3553 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; |
3558 } | 3554 } |
3559 | 3555 |
3560 // static | 3556 // static |
3561 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( | 3557 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( |
3562 const storage::QuotaSettings* settings) { | 3558 const storage::QuotaSettings* settings) { |
3563 g_default_quota_settings = settings; | 3559 g_default_quota_settings = settings; |
3564 } | 3560 } |
OLD | NEW |