diff options
Diffstat (limited to 'base/task_scheduler/scheduler_worker_params.h')
-rw-r--r-- | base/task_scheduler/scheduler_worker_params.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/base/task_scheduler/scheduler_worker_params.h b/base/task_scheduler/scheduler_worker_params.h new file mode 100644 index 0000000000..ea753fff59 --- /dev/null +++ b/base/task_scheduler/scheduler_worker_params.h @@ -0,0 +1,24 @@ +// Copyright 2017 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef BASE_TASK_SCHEDULER_SCHEDULER_WORKER_PARAMS_H_ +#define BASE_TASK_SCHEDULER_SCHEDULER_WORKER_PARAMS_H_ + +namespace base { + +enum class SchedulerBackwardCompatibility { + // No backward compatibility. + DISABLED, + + // On Windows, initialize COM STA to mimic SequencedWorkerPool and + // BrowserThreadImpl. Behaves like DISABLED on other platforms. + // TODO(fdoray): Get rid of this and force tasks that care about a + // CoInitialized environment to request one explicitly (via an upcoming + // execution mode). + INIT_COM_STA, +}; + +} // namespace base + +#endif // BASE_TASK_SCHEDULER_SCHEDULER_WORKER_PARAMS_H_ |