task_parameters.h 718 B

12345678910111213141516171819202122232425
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_BACKGROUND_TASK_SCHEDULER_TASK_PARAMETERS_H_
  5. #define COMPONENTS_BACKGROUND_TASK_SCHEDULER_TASK_PARAMETERS_H_
  6. #include <string>
  7. namespace background_task {
  8. // TaskParameters are passed to BackgroundTask whenever they are invoked. It
  9. // contains the task ID and the extras that the caller has passed in with the
  10. // TaskInfo.
  11. struct TaskParameters {
  12. TaskParameters();
  13. ~TaskParameters();
  14. int task_id;
  15. std::string extras;
  16. };
  17. } // namespace background_task
  18. #endif // COMPONENTS_BACKGROUND_TASK_SCHEDULER_TASK_PARAMETERS_H_