| 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_SYNCHRONIZATION_WAITABLE_EVENT_H_ | 5 #ifndef BASE_SYNCHRONIZATION_WAITABLE_EVENT_H_ |
| 6 #define BASE_SYNCHRONIZATION_WAITABLE_EVENT_H_ | 6 #define BASE_SYNCHRONIZATION_WAITABLE_EVENT_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/base_export.h" | 10 #include "base/base_export.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 | 13 |
| 14 #if defined(OS_WIN) | 14 #if defined(OS_WIN) |
| 15 #include "base/win/scoped_handle.h" | 15 #include "base/win/scoped_handle.h" |
| 16 #endif | 16 #endif |
| 17 | 17 |
| 18 #if defined(OS_POSIX) | 18 #if defined(OS_POSIX) || defined(OS_FUCHSIA) |
| 19 #include <list> | 19 #include <list> |
| 20 #include <utility> | 20 #include <utility> |
| 21 #include "base/memory/ref_counted.h" | 21 #include "base/memory/ref_counted.h" |
| 22 #include "base/synchronization/lock.h" | 22 #include "base/synchronization/lock.h" |
| 23 #endif | 23 #endif |
| 24 | 24 |
| 25 namespace base { | 25 namespace base { |
| 26 | 26 |
| 27 class TimeDelta; | 27 class TimeDelta; |
| 28 class TimeTicks; | 28 class TimeTicks; |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 193 |
| 194 scoped_refptr<WaitableEventKernel> kernel_; | 194 scoped_refptr<WaitableEventKernel> kernel_; |
| 195 #endif | 195 #endif |
| 196 | 196 |
| 197 DISALLOW_COPY_AND_ASSIGN(WaitableEvent); | 197 DISALLOW_COPY_AND_ASSIGN(WaitableEvent); |
| 198 }; | 198 }; |
| 199 | 199 |
| 200 } // namespace base | 200 } // namespace base |
| 201 | 201 |
| 202 #endif // BASE_SYNCHRONIZATION_WAITABLE_EVENT_H_ | 202 #endif // BASE_SYNCHRONIZATION_WAITABLE_EVENT_H_ |
| OLD | NEW |