| 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_SHARED_MEMORY_H_ | 5 #ifndef BASE_SHARED_MEMORY_H_ |
| 6 #define BASE_SHARED_MEMORY_H_ | 6 #define BASE_SHARED_MEMORY_H_ |
| 7 #pragma once | |
| 8 | 7 |
| 9 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 10 | 9 |
| 11 #include <string> | 10 #include <string> |
| 12 | 11 |
| 13 #if defined(OS_POSIX) | 12 #if defined(OS_POSIX) |
| 14 #include <stdio.h> | 13 #include <stdio.h> |
| 15 #include <sys/types.h> | 14 #include <sys/types.h> |
| 16 #include <semaphore.h> | 15 #include <semaphore.h> |
| 17 #endif | 16 #endif |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 } | 264 } |
| 266 | 265 |
| 267 private: | 266 private: |
| 268 SharedMemory* shared_memory_; | 267 SharedMemory* shared_memory_; |
| 269 DISALLOW_COPY_AND_ASSIGN(SharedMemoryAutoLock); | 268 DISALLOW_COPY_AND_ASSIGN(SharedMemoryAutoLock); |
| 270 }; | 269 }; |
| 271 | 270 |
| 272 } // namespace base | 271 } // namespace base |
| 273 | 272 |
| 274 #endif // BASE_SHARED_MEMORY_H_ | 273 #endif // BASE_SHARED_MEMORY_H_ |
| OLD | NEW |