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

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

Issue 1543293004: Switch to standard integer types in base/process/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ssize_t Created 5 years 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/process/launch_posix.cc ('k') | base/process/memory.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_PROCESS_MEMORY_H_ 5 #ifndef BASE_PROCESS_MEMORY_H_
6 #define BASE_PROCESS_MEMORY_H_ 6 #define BASE_PROCESS_MEMORY_H_
7 7
8 #include <stddef.h>
9
8 #include "base/base_export.h" 10 #include "base/base_export.h"
9 #include "base/basictypes.h"
10 #include "base/process/process_handle.h" 11 #include "base/process/process_handle.h"
11 #include "build/build_config.h" 12 #include "build/build_config.h"
12 13
13 #if defined(OS_WIN) 14 #if defined(OS_WIN)
14 #include <windows.h> 15 #include <windows.h>
15 #endif 16 #endif
16 17
17 #ifdef PVALLOC_AVAILABLE 18 #ifdef PVALLOC_AVAILABLE
18 // Build config explicitly tells us whether or not pvalloc is available. 19 // Build config explicitly tells us whether or not pvalloc is available.
19 #elif defined(LIBC_GLIBC) && !defined(USE_TCMALLOC) 20 #elif defined(LIBC_GLIBC) && !defined(USE_TCMALLOC)
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // set to NULL, otherwise it holds the memory address. 78 // set to NULL, otherwise it holds the memory address.
78 BASE_EXPORT WARN_UNUSED_RESULT bool UncheckedMalloc(size_t size, 79 BASE_EXPORT WARN_UNUSED_RESULT bool UncheckedMalloc(size_t size,
79 void** result); 80 void** result);
80 BASE_EXPORT WARN_UNUSED_RESULT bool UncheckedCalloc(size_t num_items, 81 BASE_EXPORT WARN_UNUSED_RESULT bool UncheckedCalloc(size_t num_items,
81 size_t size, 82 size_t size,
82 void** result); 83 void** result);
83 84
84 } // namespace base 85 } // namespace base
85 86
86 #endif // BASE_PROCESS_MEMORY_H_ 87 #endif // BASE_PROCESS_MEMORY_H_
OLDNEW
« no previous file with comments | « base/process/launch_posix.cc ('k') | base/process/memory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698