// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_TASK_TRAITS_H_ #define CONTENT_PUBLIC_BROWSER_BROWSER_TASK_TRAITS_H_ #include "base/task/task_traits.h" #include "content/common/content_export.h" namespace content { // Semantic annotations which tell the scheduler what type of task it's dealing // with. This will be used by the scheduler for dynamic prioritization and for // attribution in traces, etc... In general, BrowserTaskType::kDefault is what // you want (it's implicit if you don't specify this trait). Only explicitly // specify this trait if you carefully isolated a set of tasks that have no // ordering requirements with anything else (in doubt, consult with // [email protected]). enum class BrowserTaskType { … }; class CONTENT_EXPORT BrowserTaskTraits { … }; } // namespace content #endif // CONTENT_PUBLIC_BROWSER_BROWSER_TASK_TRAITS_H_