Chromium Code Reviews| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 135 #include "components/payments/payment_request.mojom.h" | 135 #include "components/payments/payment_request.mojom.h" |
| 136 #include "components/pref_registry/pref_registry_syncable.h" | 136 #include "components/pref_registry/pref_registry_syncable.h" |
| 137 #include "components/prefs/pref_service.h" | 137 #include "components/prefs/pref_service.h" |
| 138 #include "components/prefs/scoped_user_pref_update.h" | 138 #include "components/prefs/scoped_user_pref_update.h" |
| 139 #include "components/rappor/rappor_recorder_impl.h" | 139 #include "components/rappor/rappor_recorder_impl.h" |
| 140 #include "components/rappor/rappor_utils.h" | 140 #include "components/rappor/rappor_utils.h" |
| 141 #include "components/security_interstitials/core/ssl_error_ui.h" | 141 #include "components/security_interstitials/core/ssl_error_ui.h" |
| 142 #include "components/signin/core/common/profile_management_switches.h" | 142 #include "components/signin/core/common/profile_management_switches.h" |
| 143 #include "components/spellcheck/spellcheck_build_features.h" | 143 #include "components/spellcheck/spellcheck_build_features.h" |
| 144 #include "components/startup_metric_utils/browser/startup_metric_host_impl.h" | 144 #include "components/startup_metric_utils/browser/startup_metric_host_impl.h" |
| 145 #include "components/task_scheduler_util/initialization_util.h" | |
| 145 #include "components/translate/core/common/translate_switches.h" | 146 #include "components/translate/core/common/translate_switches.h" |
| 146 #include "components/url_formatter/url_fixer.h" | 147 #include "components/url_formatter/url_fixer.h" |
| 147 #include "components/variations/variations_associated_data.h" | 148 #include "components/variations/variations_associated_data.h" |
| 148 #include "components/version_info/version_info.h" | 149 #include "components/version_info/version_info.h" |
| 149 #include "content/public/browser/browser_child_process_host.h" | 150 #include "content/public/browser/browser_child_process_host.h" |
| 150 #include "content/public/browser/browser_main_parts.h" | 151 #include "content/public/browser/browser_main_parts.h" |
| 151 #include "content/public/browser/browser_ppapi_host.h" | 152 #include "content/public/browser/browser_ppapi_host.h" |
| 152 #include "content/public/browser/browser_thread.h" | 153 #include "content/public/browser/browser_thread.h" |
| 153 #include "content/public/browser/browser_url_handler.h" | 154 #include "content/public/browser/browser_url_handler.h" |
| 154 #include "content/public/browser/child_process_data.h" | 155 #include "content/public/browser/child_process_data.h" |
| (...skipping 3144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3299 render_frame_host, std::move(source), std::move(request)); | 3300 render_frame_host, std::move(source), std::move(request)); |
| 3300 #else | 3301 #else |
| 3301 // Chrome's media remoting implementation depends on the Media Router | 3302 // Chrome's media remoting implementation depends on the Media Router |
| 3302 // infrastructure to identify remote sinks and provide the user interface for | 3303 // 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 | 3304 // 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 | 3305 // drop the interface request. This will prevent code paths for media remoting |
| 3305 // in the renderer process from activating. | 3306 // in the renderer process from activating. |
| 3306 #endif | 3307 #endif |
| 3307 } | 3308 } |
| 3308 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) | 3309 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) |
| 3310 | |
| 3311 void ChromeContentBrowserClient::GetTaskSchedulerInitializationParams( | |
| 3312 std::vector<base::SchedulerWorkerPoolParams>* params_vector, | |
| 3313 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* | |
| 3314 index_to_traits_callback) { | |
| 3315 task_scheduler_util::GetBrowserTaskSchedulerInitParameters( | |
|
fdoray
2016/12/01 15:26:21
InitializationParams vs InitParameters: Use the sa
robliao
2016/12/06 01:31:30
Done.
| |
| 3316 params_vector, index_to_traits_callback); | |
| 3317 } | |
| 3318 | |
| 3319 void ChromeContentBrowserClient::PerformRedirectionToTaskScheduler() { | |
| 3320 task_scheduler_util::MaybePerformRedirectionToTaskScheduler(); | |
| 3321 } | |
| OLD | NEW |