Bug 1755481: correct documentation of `nsIClipboard::getData`. r=mccr8
[gecko.git] / xpcom / threads / TaskCategory.h
blob8f189c8737284e81493d96126931aed1d5a7570a
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
10 namespace mozilla {
12 // The different kinds of tasks we can dispatch to a SystemGroup, TabGroup, or
13 // DocGroup.
14 enum class TaskCategory {
15 // User input (clicks, keypresses, etc.)
16 UI,
18 // Data from the network
19 Network,
21 // setTimeout, setInterval
22 Timer,
24 // Runnables posted from a worker to the main thread
25 Worker,
27 // requestIdleCallback
28 IdleCallback,
30 // Vsync notifications
31 RefreshDriver,
33 // GC/CC-related tasks
34 GarbageCollection,
36 // Most DOM events (postMessage, media, plugins)
37 Other,
39 // Runnables related to Performance Counting
40 Performance,
42 Count
45 } // namespace mozilla
47 #endif // mozilla_TaskCategory_h