blob: d864ce97dd2692d6ec453b77b68e4e7a11f7fe21 [file] [log] [blame]
// 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_THREAD_POOL_WORKER_THREAD_PARAMS_H_
#define BASE_TASK_THREAD_POOL_WORKER_THREAD_PARAMS_H_
namespace base {
enum class WorkerThreadBackwardCompatibility {
// 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_THREAD_POOL_WORKER_THREAD_PARAMS_H_