OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_MESSAGE_LOOP_MESSAGE_LOOP_TASK_RUNNER_H_ | 5 #ifndef BASE_MESSAGE_LOOP_MESSAGE_LOOP_TASK_RUNNER_H_ |
6 #define BASE_MESSAGE_LOOP_MESSAGE_LOOP_TASK_RUNNER_H_ | 6 #define BASE_MESSAGE_LOOP_MESSAGE_LOOP_TASK_RUNNER_H_ |
7 | 7 |
8 #include "base/base_export.h" | 8 #include "base/base_export.h" |
| 9 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
10 #include "base/pending_task.h" | 11 #include "base/pending_task.h" |
11 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
12 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
13 #include "base/threading/platform_thread.h" | 14 #include "base/threading/platform_thread.h" |
14 | 15 |
15 namespace base { | 16 namespace base { |
16 namespace internal { | 17 namespace internal { |
17 | 18 |
18 class IncomingTaskQueue; | 19 class IncomingTaskQueue; |
(...skipping 30 matching lines...) Expand all Loading... |
49 PlatformThreadId valid_thread_id_; | 50 PlatformThreadId valid_thread_id_; |
50 mutable Lock valid_thread_id_lock_; | 51 mutable Lock valid_thread_id_lock_; |
51 | 52 |
52 DISALLOW_COPY_AND_ASSIGN(MessageLoopTaskRunner); | 53 DISALLOW_COPY_AND_ASSIGN(MessageLoopTaskRunner); |
53 }; | 54 }; |
54 | 55 |
55 } // namespace internal | 56 } // namespace internal |
56 } // namespace base | 57 } // namespace base |
57 | 58 |
58 #endif // BASE_MESSAGE_LOOP_MESSAGE_LOOP_TASK_RUNNER_H_ | 59 #endif // BASE_MESSAGE_LOOP_MESSAGE_LOOP_TASK_RUNNER_H_ |
OLD | NEW |