Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Side by Side Diff: base/memory/shared_memory.h

Issue 1549003002: Switch to standard integer types in base/memory/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/memory/scoped_vector_unittest.cc ('k') | base/memory/shared_memory_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_MEMORY_SHARED_MEMORY_H_ 5 #ifndef BASE_MEMORY_SHARED_MEMORY_H_
6 #define BASE_MEMORY_SHARED_MEMORY_H_ 6 #define BASE_MEMORY_SHARED_MEMORY_H_
7 7
8 #include "build/build_config.h" 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "base/base_export.h"
13 #include "base/macros.h"
14 #include "base/memory/shared_memory_handle.h"
15 #include "base/process/process_handle.h"
16 #include "build/build_config.h"
17
12 #if defined(OS_POSIX) 18 #if defined(OS_POSIX)
13 #include <stdio.h> 19 #include <stdio.h>
14 #include <sys/types.h> 20 #include <sys/types.h>
15 #include <semaphore.h> 21 #include <semaphore.h>
16 #endif
17
18 #include "base/base_export.h"
19 #include "base/basictypes.h"
20 #include "base/memory/shared_memory_handle.h"
21 #include "base/process/process_handle.h"
22
23 #if defined(OS_POSIX)
24 #include "base/file_descriptor_posix.h" 22 #include "base/file_descriptor_posix.h"
25 #include "base/files/file_util.h" 23 #include "base/files/file_util.h"
26 #include "base/files/scoped_file.h" 24 #include "base/files/scoped_file.h"
27 #endif 25 #endif
28 26
29 namespace base { 27 namespace base {
30 28
31 class FilePath; 29 class FilePath;
32 30
33 // Options for creating a shared memory object. 31 // Options for creating a shared memory object.
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 size_t mapped_size_; 303 size_t mapped_size_;
306 void* memory_; 304 void* memory_;
307 bool read_only_; 305 bool read_only_;
308 size_t requested_size_; 306 size_t requested_size_;
309 307
310 DISALLOW_COPY_AND_ASSIGN(SharedMemory); 308 DISALLOW_COPY_AND_ASSIGN(SharedMemory);
311 }; 309 };
312 } // namespace base 310 } // namespace base
313 311
314 #endif // BASE_MEMORY_SHARED_MEMORY_H_ 312 #endif // BASE_MEMORY_SHARED_MEMORY_H_
OLDNEW
« no previous file with comments | « base/memory/scoped_vector_unittest.cc ('k') | base/memory/shared_memory_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698