1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_TaskCategory_h
8 #define mozilla_TaskCategory_h
12 // The different kinds of tasks we can dispatch to a SystemGroup, TabGroup, or
14 enum class TaskCategory
{
15 // User input (clicks, keypresses, etc.)
18 // Data from the network
21 // setTimeout, setInterval
24 // Runnables posted from a worker to the main thread
27 // requestIdleCallback
30 // Vsync notifications
33 // GC/CC-related tasks
36 // Most DOM events (postMessage, media, plugins)
39 // Runnables related to Performance Counting
45 } // namespace mozilla
47 #endif // mozilla_TaskCategory_h