OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WAITABLE_EVENT_WATCHER_H_ | 5 #ifndef BASE_SYNCHRONIZATION_WAITABLE_EVENT_WATCHER_H_ |
6 #define BASE_WAITABLE_EVENT_WATCHER_H_ | 6 #define BASE_SYNCHRONIZATION_WAITABLE_EVENT_WATCHER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
11 #if defined(OS_WIN) | 11 #if defined(OS_WIN) |
12 #include "base/win/object_watcher.h" | 12 #include "base/win/object_watcher.h" |
13 #else | 13 #else |
14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
15 #include "base/waitable_event.h" | 15 #include "base/synchronization/waitable_event.h" |
16 #endif | 16 #endif |
17 | 17 |
18 namespace base { | 18 namespace base { |
19 | 19 |
20 class Flag; | 20 class Flag; |
21 class AsyncWaiter; | 21 class AsyncWaiter; |
22 class AsyncCallbackTask; | 22 class AsyncCallbackTask; |
23 class WaitableEvent; | 23 class WaitableEvent; |
24 | 24 |
25 // ----------------------------------------------------------------------------- | 25 // ----------------------------------------------------------------------------- |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 AsyncWaiter* waiter_; | 152 AsyncWaiter* waiter_; |
153 AsyncCallbackTask* callback_task_; | 153 AsyncCallbackTask* callback_task_; |
154 scoped_refptr<WaitableEvent::WaitableEventKernel> kernel_; | 154 scoped_refptr<WaitableEvent::WaitableEventKernel> kernel_; |
155 #endif | 155 #endif |
156 | 156 |
157 Delegate* delegate_; | 157 Delegate* delegate_; |
158 }; | 158 }; |
159 | 159 |
160 } // namespace base | 160 } // namespace base |
161 | 161 |
162 #endif // BASE_WAITABLE_EVENT_WATCHER_H_ | 162 #endif // BASE_SYNCHRONIZATION_WAITABLE_EVENT_WATCHER_H_ |
OLD | NEW |