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 "content/public/browser/content_browser_client.h" | 5 #include "content/public/browser/content_browser_client.h" |
6 | 6 |
| 7 #include "base/bind.h" |
7 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
8 #include "base/guid.h" | 9 #include "base/guid.h" |
| 10 #include "base/task_scheduler/initialization_util.h" |
| 11 #include "base/task_scheduler/scheduler_worker_pool_params.h" |
| 12 #include "base/time/time.h" |
9 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "components/task_scheduler_util/initialization/browser_util.h" |
10 #include "content/public/browser/client_certificate_delegate.h" | 15 #include "content/public/browser/client_certificate_delegate.h" |
11 #include "content/public/browser/memory_coordinator_delegate.h" | 16 #include "content/public/browser/memory_coordinator_delegate.h" |
12 #include "content/public/browser/navigation_ui_data.h" | 17 #include "content/public/browser/navigation_ui_data.h" |
13 #include "content/public/browser/vpn_service_proxy.h" | 18 #include "content/public/browser/vpn_service_proxy.h" |
14 #include "content/public/common/sandbox_type.h" | 19 #include "content/public/common/sandbox_type.h" |
15 #include "media/base/cdm_factory.h" | 20 #include "media/base/cdm_factory.h" |
16 #include "media/media_features.h" | 21 #include "media/media_features.h" |
17 #include "storage/browser/quota/quota_manager.h" | 22 #include "storage/browser/quota/quota_manager.h" |
18 #include "ui/gfx/image/image_skia.h" | 23 #include "ui/gfx/image/image_skia.h" |
19 #include "url/gurl.h" | 24 #include "url/gurl.h" |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 std::unique_ptr<base::Value> ContentBrowserClient::GetServiceManifestOverlay( | 432 std::unique_ptr<base::Value> ContentBrowserClient::GetServiceManifestOverlay( |
428 const std::string& name) { | 433 const std::string& name) { |
429 return nullptr; | 434 return nullptr; |
430 } | 435 } |
431 | 436 |
432 std::unique_ptr<MemoryCoordinatorDelegate> | 437 std::unique_ptr<MemoryCoordinatorDelegate> |
433 ContentBrowserClient::GetMemoryCoordinatorDelegate() { | 438 ContentBrowserClient::GetMemoryCoordinatorDelegate() { |
434 return std::unique_ptr<MemoryCoordinatorDelegate>(); | 439 return std::unique_ptr<MemoryCoordinatorDelegate>(); |
435 } | 440 } |
436 | 441 |
| 442 void ContentBrowserClient::GetTaskSchedulerInitializationParams( |
| 443 std::vector<base::SchedulerWorkerPoolParams>* params_vector, |
| 444 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* |
| 445 index_to_traits_callback) { |
| 446 DCHECK(params_vector); |
| 447 DCHECK(index_to_traits_callback); |
| 448 *params_vector = |
| 449 task_scheduler_util::initialization:: |
| 450 GetDefaultBrowserSchedulerWorkerPoolParams(); |
| 451 *index_to_traits_callback = base::Bind(&task_scheduler_util::initialization:: |
| 452 BrowserWorkerPoolIndexForTraits); |
| 453 } |
| 454 |
437 } // namespace content | 455 } // namespace content |
OLD | NEW |