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