OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef BASE_THREAD_TASK_RUNNER_HANDLE_H_ | 5 #ifndef BASE_THREADING_THREAD_TASK_RUNNER_HANDLE_H_ |
6 #define BASE_THREAD_TASK_RUNNER_HANDLE_H_ | 6 #define BASE_THREADING_THREAD_TASK_RUNNER_HANDLE_H_ |
7 | 7 |
8 #include "base/base_export.h" | 8 #include "base/base_export.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 | 11 |
12 namespace base { | 12 namespace base { |
13 | 13 |
14 class SingleThreadTaskRunner; | 14 class SingleThreadTaskRunner; |
15 | 15 |
16 // ThreadTaskRunnerHandle stores a reference to a thread's TaskRunner | 16 // ThreadTaskRunnerHandle stores a reference to a thread's TaskRunner |
(...skipping 17 matching lines...) Expand all Loading... |
34 ~ThreadTaskRunnerHandle(); | 34 ~ThreadTaskRunnerHandle(); |
35 | 35 |
36 private: | 36 private: |
37 scoped_refptr<SingleThreadTaskRunner> task_runner_; | 37 scoped_refptr<SingleThreadTaskRunner> task_runner_; |
38 | 38 |
39 DISALLOW_COPY_AND_ASSIGN(ThreadTaskRunnerHandle); | 39 DISALLOW_COPY_AND_ASSIGN(ThreadTaskRunnerHandle); |
40 }; | 40 }; |
41 | 41 |
42 } // namespace base | 42 } // namespace base |
43 | 43 |
44 #endif // BASE_THREAD_TASK_RUNNER_HANDLE_H_ | 44 #endif // BASE_THREADING_THREAD_TASK_RUNNER_HANDLE_H_ |
OLD | NEW |