blob: 4de6f4786e954f4334e535fa8359e155f0cefe04 [file] [log] [blame]
// 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_IDS_H_
#define COMPONENTS_BACKGROUND_TASK_SCHEDULER_TASK_IDS_H_
namespace background_task {
// This enum lists all the unique task IDs used around in Chromium. These are
// listed here to ensure that there is no overlap of task IDs between different
// users of the BackgroundTaskScheduler.
// When adding your job id to the list below, update:
// 1. BackgroundTaskSchedulerExternalUma for metrics, specifically:
// toUmaEnumValueFromTaskId() and getHistogramPatternForTaskId().
// 2. Enum BackgroundTaskId in tools/metrics/histograms/enums.xml.
// 3. Variant TaskType in
// tools/metrics/histograms/metadata/android/histograms.xml.
// 4. ChromeBackgroundTaskFactory#createBackgroundTaskFromTaskId in java.
// 5. BackgroundTaskSchedulerUmaTest#testToUmaEnumValueFromTaskId for
// updated BACKGROUND_TASK_COUNT.
// 6. If the task is a native task, also update
// ChromeBackgroundTaskFactory::GetNativeBackgroundTaskFromTaskId.
// Id from 111000000 to 111999999 are reserved for internal usage. A Java
// counterpart will be generated for this enum.
// GENERATED_JAVA_ENUM_PACKAGE: (
// org.chromium.components.background_task_scheduler)
enum class TaskIds {
// component: Internals>BackgroundTaskScheduler
// team_email: [email protected]
// owner: [email protected], [email protected]
TEST = 0x00008378,
// component: Internals>Installer
// team_email: [email protected]
// owner: [email protected]
OMAHA_JOB_ID = 0x00011684,
// component: Services>CloudMessaging
// team_email:
// owner: [email protected]
GCM_BACKGROUND_TASK_JOB_ID = 1,
// component: UI>Notifications
// team_email: [email protected]
// owner: [email protected]
NOTIFICATION_SERVICE_JOB_ID = 21,
// component: UI>Notifications
// team_email: [email protected]
// owner: [email protected]
NOTIFICATION_SERVICE_PRE_UNSUBSCRIBE_JOB_ID = 221,
// component: Mobile>WebView
// team_email: [email protected]
// owner: [email protected]
WEBVIEW_MINIDUMP_UPLOADING_JOB_ID = 42,
// component: Internals>CrashReporting
// team_email:
// owner: [email protected]
CHROME_MINIDUMP_UPLOADING_JOB_ID = 43,
// component: UI>Browser>Offline
// team_email: [email protected]
// owner: [email protected]
OFFLINE_PAGES_BACKGROUND_JOB_ID = 77,
// component: UI>Browser>Downloads
// team_email:
// owner: [email protected]
DOWNLOAD_SERVICE_JOB_ID = 53,
// component: UI>Browser>Downloads
// team_email:
// owner: [email protected]
DOWNLOAD_CLEANUP_JOB_ID = 54,
// component: Mobile>WebView
// team_email: [email protected]
// owner: [email protected],