Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: content/utility/in_process_utility_thread.cc

Issue 1967823004: Fix include path for moved thread_task_runner_handle.h header in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/utility/in_process_utility_thread.h" 5 #include "content/utility/in_process_utility_thread.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "base/thread_task_runner_handle.h" 9 #include "base/threading/thread_task_runner_handle.h"
10 #include "content/child/child_process.h" 10 #include "content/child/child_process.h"
11 #include "content/utility/utility_thread_impl.h" 11 #include "content/utility/utility_thread_impl.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 // We want to ensure there's only one utility thread running at a time, as there 15 // We want to ensure there's only one utility thread running at a time, as there
16 // are many globals used in the utility process. 16 // are many globals used in the utility process.
17 static base::LazyInstance<base::Lock> g_one_utility_thread_lock; 17 static base::LazyInstance<base::Lock> g_one_utility_thread_lock;
18 18
19 InProcessUtilityThread::InProcessUtilityThread( 19 InProcessUtilityThread::InProcessUtilityThread(
(...skipping 29 matching lines...) Expand all
49 child_process_.reset(new ChildProcess()); 49 child_process_.reset(new ChildProcess());
50 child_process_->set_main_thread(new UtilityThreadImpl(params_)); 50 child_process_->set_main_thread(new UtilityThreadImpl(params_));
51 } 51 }
52 52
53 base::Thread* CreateInProcessUtilityThread( 53 base::Thread* CreateInProcessUtilityThread(
54 const InProcessChildThreadParams& params) { 54 const InProcessChildThreadParams& params) {
55 return new InProcessUtilityThread(params); 55 return new InProcessUtilityThread(params);
56 } 56 }
57 57
58 } // namespace content 58 } // namespace content
OLDNEW
« no previous file with comments | « content/test/test_blink_web_unit_test_support.cc ('k') | content/utility/webthread_impl_for_utility_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698