| 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_SYNC_SOCKET_H_ | 5 #ifndef BASE_SYNC_SOCKET_H_ |
| 6 #define BASE_SYNC_SOCKET_H_ | 6 #define BASE_SYNC_SOCKET_H_ |
| 7 #pragma once | |
| 8 | 7 |
| 9 // A socket abstraction used for sending and receiving plain | 8 // A socket abstraction used for sending and receiving plain |
| 10 // data. Because the receiving is blocking, they can be used to perform | 9 // data. Because the receiving is blocking, they can be used to perform |
| 11 // rudimentary cross-process synchronization with low latency. | 10 // rudimentary cross-process synchronization with low latency. |
| 12 | 11 |
| 13 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 14 #if defined(OS_WIN) | 13 #if defined(OS_WIN) |
| 15 #include <windows.h> | 14 #include <windows.h> |
| 16 #endif | 15 #endif |
| 17 #include <sys/types.h> | 16 #include <sys/types.h> |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 #if defined(OS_WIN) | 115 #if defined(OS_WIN) |
| 117 WaitableEvent shutdown_event_; | 116 WaitableEvent shutdown_event_; |
| 118 WaitableEvent file_operation_; | 117 WaitableEvent file_operation_; |
| 119 #endif | 118 #endif |
| 120 DISALLOW_COPY_AND_ASSIGN(CancelableSyncSocket); | 119 DISALLOW_COPY_AND_ASSIGN(CancelableSyncSocket); |
| 121 }; | 120 }; |
| 122 | 121 |
| 123 } // namespace base | 122 } // namespace base |
| 124 | 123 |
| 125 #endif // BASE_SYNC_SOCKET_H_ | 124 #endif // BASE_SYNC_SOCKET_H_ |
| OLD | NEW |