| 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 21 matching lines...) Expand all Loading... |
| 32 #include "chrome/browser/after_startup_task_utils.h" | 32 #include "chrome/browser/after_startup_task_utils.h" |
| 33 #include "chrome/browser/apps/app_url_redirector.h" | 33 #include "chrome/browser/apps/app_url_redirector.h" |
| 34 #include "chrome/browser/browser_about_handler.h" | 34 #include "chrome/browser/browser_about_handler.h" |
| 35 #include "chrome/browser/browser_process.h" | 35 #include "chrome/browser/browser_process.h" |
| 36 #include "chrome/browser/browser_shutdown.h" | 36 #include "chrome/browser/browser_shutdown.h" |
| 37 #include "chrome/browser/browsing_data/browsing_data_filter_builder.h" | 37 #include "chrome/browser/browsing_data/browsing_data_filter_builder.h" |
| 38 #include "chrome/browser/browsing_data/browsing_data_helper.h" | 38 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
| 39 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 39 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
| 40 #include "chrome/browser/browsing_data/browsing_data_remover_factory.h" | 40 #include "chrome/browser/browsing_data/browsing_data_remover_factory.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/cache_stats_recorder.h" |
| 42 #include "chrome/browser/chrome_content_browser_client_parts.h" | 43 #include "chrome/browser/chrome_content_browser_client_parts.h" |
| 43 #include "chrome/browser/chrome_quota_permission_context.h" | 44 #include "chrome/browser/chrome_quota_permission_context.h" |
| 44 #include "chrome/browser/content_settings/cookie_settings_factory.h" | 45 #include "chrome/browser/content_settings/cookie_settings_factory.h" |
| 45 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" | 46 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
| 46 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 47 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
| 47 #include "chrome/browser/defaults.h" | 48 #include "chrome/browser/defaults.h" |
| 48 #include "chrome/browser/download/download_prefs.h" | 49 #include "chrome/browser/download/download_prefs.h" |
| 49 #include "chrome/browser/engagement/site_engagement_eviction_policy.h" | 50 #include "chrome/browser/engagement/site_engagement_eviction_policy.h" |
| 50 #include "chrome/browser/field_trial_recorder.h" | 51 #include "chrome/browser/field_trial_recorder.h" |
| 51 #include "chrome/browser/font_family_cache.h" | 52 #include "chrome/browser/font_family_cache.h" |
| (...skipping 2890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2942 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner = | 2943 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner = |
| 2943 content::BrowserThread::GetTaskRunnerForThread( | 2944 content::BrowserThread::GetTaskRunnerForThread( |
| 2944 content::BrowserThread::UI); | 2945 content::BrowserThread::UI); |
| 2945 registry->AddInterface( | 2946 registry->AddInterface( |
| 2946 base::Bind(&startup_metric_utils::StartupMetricHostImpl::Create), | 2947 base::Bind(&startup_metric_utils::StartupMetricHostImpl::Create), |
| 2947 ui_task_runner); | 2948 ui_task_runner); |
| 2948 registry->AddInterface( | 2949 registry->AddInterface( |
| 2949 base::Bind(&BudgetServiceImpl::Create, render_process_host->GetID()), | 2950 base::Bind(&BudgetServiceImpl::Create, render_process_host->GetID()), |
| 2950 ui_task_runner); | 2951 ui_task_runner); |
| 2951 registry->AddInterface( | 2952 registry->AddInterface( |
| 2953 base::Bind(&CacheStatsRecorder::Create, render_process_host->GetID()), |
| 2954 ui_task_runner); |
| 2955 registry->AddInterface( |
| 2952 base::Bind(&FieldTrialRecorder::Create), | 2956 base::Bind(&FieldTrialRecorder::Create), |
| 2953 ui_task_runner); | 2957 ui_task_runner); |
| 2954 registry->AddInterface( | 2958 registry->AddInterface( |
| 2955 base::Bind(&rappor::RapporRecorderImpl::Create, | 2959 base::Bind(&rappor::RapporRecorderImpl::Create, |
| 2956 g_browser_process->rappor_service()), | 2960 g_browser_process->rappor_service()), |
| 2957 ui_task_runner); | 2961 ui_task_runner); |
| 2958 if (NetBenchmarking::CheckBenchmarkingEnabled()) { | 2962 if (NetBenchmarking::CheckBenchmarkingEnabled()) { |
| 2959 Profile* profile = | 2963 Profile* profile = |
| 2960 Profile::FromBrowserContext(render_process_host->GetBrowserContext()); | 2964 Profile::FromBrowserContext(render_process_host->GetBrowserContext()); |
| 2961 net::URLRequestContextGetter* context = | 2965 net::URLRequestContextGetter* context = |
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3418 bool ChromeContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() { | 3422 bool ChromeContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() { |
| 3419 return variations::GetVariationParamValue( | 3423 return variations::GetVariationParamValue( |
| 3420 "BrowserScheduler", "RedirectDOMStorageTaskRunner") == "true"; | 3424 "BrowserScheduler", "RedirectDOMStorageTaskRunner") == "true"; |
| 3421 } | 3425 } |
| 3422 | 3426 |
| 3423 bool ChromeContentBrowserClient:: | 3427 bool ChromeContentBrowserClient:: |
| 3424 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { | 3428 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { |
| 3425 return variations::GetVariationParamValue( | 3429 return variations::GetVariationParamValue( |
| 3426 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; | 3430 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; |
| 3427 } | 3431 } |
| OLD | NEW |