Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(960)

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2643183002: Convert ChromeViewHostMsg_UpdatedCacheStats to use mojo. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 22 matching lines...) Expand all
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_helper.h" 37 #include "chrome/browser/browsing_data/browsing_data_helper.h"
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/browsing_data/origin_filter_builder.h" 40 #include "chrome/browser/browsing_data/origin_filter_builder.h"
41 #include "chrome/browser/browsing_data/registrable_domain_filter_builder.h" 41 #include "chrome/browser/browsing_data/registrable_domain_filter_builder.h"
42 #include "chrome/browser/budget_service/budget_service_impl.h" 42 #include "chrome/browser/budget_service/budget_service_impl.h"
43 #include "chrome/browser/cache_stats_recorder.h"
43 #include "chrome/browser/chrome_content_browser_client_parts.h" 44 #include "chrome/browser/chrome_content_browser_client_parts.h"
44 #include "chrome/browser/chrome_quota_permission_context.h" 45 #include "chrome/browser/chrome_quota_permission_context.h"
45 #include "chrome/browser/content_settings/cookie_settings_factory.h" 46 #include "chrome/browser/content_settings/cookie_settings_factory.h"
46 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" 47 #include "chrome/browser/content_settings/host_content_settings_map_factory.h"
47 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 48 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
48 #include "chrome/browser/defaults.h" 49 #include "chrome/browser/defaults.h"
49 #include "chrome/browser/download/download_prefs.h" 50 #include "chrome/browser/download/download_prefs.h"
50 #include "chrome/browser/engagement/site_engagement_eviction_policy.h" 51 #include "chrome/browser/engagement/site_engagement_eviction_policy.h"
51 #include "chrome/browser/field_trial_recorder.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"
(...skipping 2854 matching lines...) Expand 10 before | Expand all | Expand 10 after
2907 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner = 2908 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner =
2908 content::BrowserThread::GetTaskRunnerForThread( 2909 content::BrowserThread::GetTaskRunnerForThread(
2909 content::BrowserThread::UI); 2910 content::BrowserThread::UI);
2910 registry->AddInterface( 2911 registry->AddInterface(
2911 base::Bind(&startup_metric_utils::StartupMetricHostImpl::Create), 2912 base::Bind(&startup_metric_utils::StartupMetricHostImpl::Create),
2912 ui_task_runner); 2913 ui_task_runner);
2913 registry->AddInterface( 2914 registry->AddInterface(
2914 base::Bind(&BudgetServiceImpl::Create, render_process_host->GetID()), 2915 base::Bind(&BudgetServiceImpl::Create, render_process_host->GetID()),
2915 ui_task_runner); 2916 ui_task_runner);
2916 registry->AddInterface( 2917 registry->AddInterface(
2918 base::Bind(&CacheStatsRecorder::Create, render_process_host->GetID()),
2919 ui_task_runner);
2920 registry->AddInterface(
2917 base::Bind(&FieldTrialRecorder::Create), 2921 base::Bind(&FieldTrialRecorder::Create),
2918 ui_task_runner); 2922 ui_task_runner);
2919 registry->AddInterface( 2923 registry->AddInterface(
2920 base::Bind(&rappor::RapporRecorderImpl::Create, 2924 base::Bind(&rappor::RapporRecorderImpl::Create,
2921 g_browser_process->rappor_service()), 2925 g_browser_process->rappor_service()),
2922 ui_task_runner); 2926 ui_task_runner);
2923 if (NetBenchmarking::CheckBenchmarkingEnabled()) { 2927 if (NetBenchmarking::CheckBenchmarkingEnabled()) {
2924 Profile* profile = 2928 Profile* profile =
2925 Profile::FromBrowserContext(render_process_host->GetBrowserContext()); 2929 Profile::FromBrowserContext(render_process_host->GetBrowserContext());
2926 net::URLRequestContextGetter* context = 2930 net::URLRequestContextGetter* context =
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
3392 bool ChromeContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() { 3396 bool ChromeContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() {
3393 return variations::GetVariationParamValue( 3397 return variations::GetVariationParamValue(
3394 "BrowserScheduler", "RedirectDOMStorageTaskRunner") == "true"; 3398 "BrowserScheduler", "RedirectDOMStorageTaskRunner") == "true";
3395 } 3399 }
3396 3400
3397 bool ChromeContentBrowserClient:: 3401 bool ChromeContentBrowserClient::
3398 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { 3402 RedirectNonUINonIOBrowserThreadsToTaskScheduler() {
3399 return variations::GetVariationParamValue( 3403 return variations::GetVariationParamValue(
3400 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; 3404 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true";
3401 } 3405 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698