OLD | NEW |
1 // Copyright (c) 2011 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_SHARED_MEMORY_H_ | 5 #ifndef BASE_SHARED_MEMORY_H_ |
6 #define BASE_SHARED_MEMORY_H_ | 6 #define BASE_SHARED_MEMORY_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_POSIX) | 11 #if defined(OS_POSIX) |
| 12 #include <stdio.h> |
12 #include <sys/types.h> | 13 #include <sys/types.h> |
13 #include <semaphore.h> | 14 #include <semaphore.h> |
14 #include "base/file_descriptor_posix.h" | 15 #include "base/file_descriptor_posix.h" |
15 #endif | 16 #endif |
16 #include <string> | 17 #include <string> |
17 | 18 |
18 #include "base/base_export.h" | 19 #include "base/base_export.h" |
19 #include "base/basictypes.h" | 20 #include "base/basictypes.h" |
20 #include "base/process.h" | 21 #include "base/process.h" |
21 | 22 |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 } | 264 } |
264 | 265 |
265 private: | 266 private: |
266 SharedMemory* shared_memory_; | 267 SharedMemory* shared_memory_; |
267 DISALLOW_COPY_AND_ASSIGN(SharedMemoryAutoLock); | 268 DISALLOW_COPY_AND_ASSIGN(SharedMemoryAutoLock); |
268 }; | 269 }; |
269 | 270 |
270 } // namespace base | 271 } // namespace base |
271 | 272 |
272 #endif // BASE_SHARED_MEMORY_H_ | 273 #endif // BASE_SHARED_MEMORY_H_ |
OLD | NEW |