task_ids.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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_IDS_H_
  5. #define COMPONENTS_BACKGROUND_TASK_SCHEDULER_TASK_IDS_H_
  6. namespace background_task {
  7. // This enum lists all the unique task IDs used around in Chromium. These are
  8. // listed here to ensure that there is no overlap of task IDs between different
  9. // users of the BackgroundTaskScheduler.
  10. // When adding your job id to the list below, remember to make a corresponding
  11. // update to the BackgroundTaskSchedulerExternalUma for metrics.
  12. // Also, if the new task id is related to a BackgroundTask class in
  13. // //chrome, remember to update
  14. // ChromeBackgroundTaskFactory#createBackgroundTaskFromTaskId in java.
  15. // If the task is a native task, also update
  16. // ChromeBackgroundTaskFactory::GetNativeBackgroundTaskFromTaskId. Id from
  17. // 111000000 to 111999999 are reserved for internal usage. A Java counterpart
  18. // will be generated for this enum.
  19. // GENERATED_JAVA_ENUM_PACKAGE: (
  20. // org.chromium.components.background_task_scheduler)
  21. enum class TaskIds {
  22. TEST = 0x00008378,
  23. OMAHA_JOB_ID = 0x00011684,
  24. GCM_BACKGROUND_TASK_JOB_ID = 1,
  25. NOTIFICATION_SERVICE_JOB_ID = 21,
  26. WEBVIEW_MINIDUMP_UPLOADING_JOB_ID = 42,
  27. CHROME_MINIDUMP_UPLOADING_JOB_ID = 43,
  28. OFFLINE_PAGES_BACKGROUND_JOB_ID = 77,
  29. OFFLINE_PAGES_PREFETCH_JOB_ID = 78,
  30. OFFLINE_PAGES_PREFETCH_NOTIFICATION_JOB_ID = 79,
  31. DOWNLOAD_SERVICE_JOB_ID = 53,
  32. DOWNLOAD_CLEANUP_JOB_ID = 54,
  33. WEBVIEW_VARIATIONS_SEED_FETCH_JOB_ID = 83,
  34. WEBAPK_UPDATE_JOB_ID = 91,
  35. DEPRECATED_DOWNLOAD_RESUMPTION_JOB_ID = 55,
  36. DOWNLOAD_AUTO_RESUMPTION_JOB_ID = 56,
  37. DOWNLOAD_LATER_JOB_ID = 57,
  38. FEED_REFRESH_JOB_ID = 22,
  39. COMPONENT_UPDATE_JOB_ID = 2,
  40. DEPRECATED_EXPLORE_SITES_REFRESH_JOB_ID = 100,
  41. EXPLORE_SITES_REFRESH_JOB_ID = 101,
  42. BACKGROUND_SYNC_ONE_SHOT_JOB_ID = 102,
  43. NOTIFICATION_SCHEDULER_JOB_ID = 103,
  44. NOTIFICATION_TRIGGER_JOB_ID = 104,
  45. PERIODIC_BACKGROUND_SYNC_CHROME_WAKEUP_TASK_JOB_ID = 105,
  46. QUERY_TILE_JOB_ID = 106,
  47. FEEDV2_REFRESH_JOB_ID = 107,
  48. WEBFEEDS_REFRESH_JOB_ID = 109,
  49. WEBVIEW_COMPONENT_UPDATE_JOB_ID = 110,
  50. ATTRIBUTION_PROVIDER_FLUSH_JOB_ID = 111,
  51. };
  52. } // namespace background_task
  53. #endif // COMPONENTS_BACKGROUND_TASK_SCHEDULER_TASK_IDS_H_