OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 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_THREAD_TASK_RUNNER_HANDLE_H_ | |
6 #define BASE_THREAD_TASK_RUNNER_HANDLE_H_ | |
7 | |
8 #include "base/base_export.h" | |
9 #include "base/memory/ref_counted.h" | |
10 | |
11 namespace base { | |
12 | |
13 class SingleThreadTaskRunner; | |
14 | |
15 // ThreadTaskRunner stores reference to the main task runner for each | |
Ami GONE FROM CHROMIUM
2012/05/08 01:30:14
s/stores/stores a/
willchan no longer on Chromium
2012/05/08 02:35:06
s/ThreadTaskRunner/ThreadTaskRunnerHandle/
Sergey Ulanov
2012/05/09 18:34:11
Done.
Sergey Ulanov
2012/05/09 18:34:11
Done.
| |
16 // thread. Not more than one of these objects created per | |
Ami GONE FROM CHROMIUM
2012/05/08 01:30:14
s/created/can be created/
Sergey Ulanov
2012/05/09 18:34:11
Done.
Sergey Ulanov
2012/05/09 18:34:11
Done.
| |
17 // thread. After an instance of this object is created the Get() | |
18 // function will be returning the |task_runner| specified in the | |
Ami GONE FROM CHROMIUM
2012/05/08 01:30:14
s/be returning/return/
Sergey Ulanov
2012/05/09 18:34:11
Done.
| |
19 // constructor. | |
20 class BASE_EXPORT ThreadTaskRunnerHandle { | |
21 public: | |
22 // Gets the SingleThreadTaskRunner for the current thread. | |
23 static scoped_refptr<SingleThreadTaskRunner> Get(); | |
24 | |
25 ThreadTaskRunnerHandle( | |
26 const scoped_refptr<SingleThreadTaskRunner>& task_runner); | |
27 ~ThreadTaskRunnerHandle(); | |
28 | |
29 private: | |
30 scoped_refptr<SingleThreadTaskRunner> task_runner_; | |
31 }; | |
32 | |
33 } // namespace base | |
34 | |
35 #endif // BASE_THREAD_TASK_RUNNER_HANDLE_H_ | |
OLD | NEW |