// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_DOWNLOAD_PUBLIC_TASK_TASK_MANAGER_IMPL_H_ #define COMPONENTS_DOWNLOAD_PUBLIC_TASK_TASK_MANAGER_IMPL_H_ #include <stdint.h> #include <map> #include "components/download/public/task/task_manager.h" #include "components/download/public/task/task_scheduler.h" namespace download { TaskFinishedCallback; // A class to manage the calls made to the TaskScheduler, that abstracts away // the details of the TaskScheduler from the calling code. The tasks can run // independently of each other as long as they have different |task_type|. // Scheduling another task of same |task_type| before the task is started will // overwrite the params of the scheduled task. class TaskManagerImpl : public TaskManager { … }; } // namespace download #endif // COMPONENTS_DOWNLOAD_PUBLIC_TASK_TASK_MANAGER_IMPL_H_