#include "content/utility/in_process_utility_thread.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/lazy_instance.h"
#include "base/location.h"
#include "base/task/single_thread_task_runner.h"
#include "base/threading/thread_restrictions.h"
#include "content/child/child_process.h"
#include "content/utility/utility_thread_impl.h"
namespace content {
static base::LazyInstance<base::Lock>::DestructorAtExit
g_one_utility_thread_lock;
InProcessUtilityThread::InProcessUtilityThread(
const InProcessChildThreadParams& params)
: … { … }
InProcessUtilityThread::~InProcessUtilityThread() { … }
void InProcessUtilityThread::Init() { … }
void InProcessUtilityThread::CleanUp()
UNLOCK_FUNCTION(g_one_utility_thread_lock.Get()) { … }
void InProcessUtilityThread::InitInternal()
EXCLUSIVE_LOCK_FUNCTION(g_one_utility_thread_lock.Get()) { … }
base::Thread* CreateInProcessUtilityThread(
const InProcessChildThreadParams& params) { … }
}