• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 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 
5 #ifndef BASE_TASK_SCHEDULER_SCHEDULER_WORKER_PARAMS_H_
6 #define BASE_TASK_SCHEDULER_SCHEDULER_WORKER_PARAMS_H_
7 
8 namespace base {
9 
10 enum class SchedulerBackwardCompatibility {
11   // No backward compatibility.
12   DISABLED,
13 
14   // On Windows, initialize COM STA to mimic SequencedWorkerPool and
15   // BrowserThreadImpl. Behaves like DISABLED on other platforms.
16   // TODO(fdoray): Get rid of this and force tasks that care about a
17   // CoInitialized environment to request one explicitly (via an upcoming
18   // execution mode).
19   INIT_COM_STA,
20 };
21 
22 }  // namespace base
23 
24 #endif  // BASE_TASK_SCHEDULER_SCHEDULER_WORKER_PARAMS_H_
25