// Copyright 2020 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_BACKGROUND_TASK_SCHEDULER_TASK_INFO_H_ #define COMPONENTS_BACKGROUND_TASK_SCHEDULER_TASK_INFO_H_ #include <stdint.h> #include <optional> #include <string> #include "components/background_task_scheduler/task_ids.h" namespace background_task { // Specifies information regarding periodic tasks. struct PeriodicInfo { … }; // Specifies information regarding one-off tasks. struct OneOffInfo { … }; // TaskInfo represents a request to run a specific BackgroundTask given // the required parameters, such as whether a special type of network is // available. struct TaskInfo { … }; } // namespace background_task #endif // COMPONENTS_BACKGROUND_TASK_SCHEDULER_TASK_INFO_H_