| OLD | NEW |
| 1 // Copyright (c) 2011 The LevelDB Authors. All rights reserved. | 1 // Copyright (c) 2011 The LevelDB 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. See the AUTHORS file for names of contributors. | 3 // found in the LICENSE file. See the AUTHORS file for names of contributors. |
| 4 // | 4 // |
| 5 // See port_example.h for documentation for the following types/functions. | 5 // See port_example.h for documentation for the following types/functions. |
| 6 | 6 |
| 7 #ifndef STORAGE_LEVELDB_PORT_PORT_CHROMIUM_H_ | 7 #ifndef STORAGE_LEVELDB_PORT_PORT_CHROMIUM_H_ |
| 8 #define STORAGE_LEVELDB_PORT_PORT_CHROMIUM_H_ | 8 #define STORAGE_LEVELDB_PORT_PORT_CHROMIUM_H_ |
| 9 | 9 |
| 10 #include <stddef.h> |
| 10 #include <stdint.h> | 11 #include <stdint.h> |
| 12 |
| 13 #include <cstring> |
| 11 #include <string> | 14 #include <string> |
| 12 #include <cstring> | 15 |
| 13 #include "base/atomicops.h" | 16 #include "base/atomicops.h" |
| 14 #include "base/basictypes.h" | 17 #include "base/macros.h" |
| 15 #include "base/synchronization/condition_variable.h" | 18 #include "base/synchronization/condition_variable.h" |
| 16 #include "base/synchronization/lock.h" | 19 #include "base/synchronization/lock.h" |
| 20 #include "build/build_config.h" |
| 17 | 21 |
| 18 // Linux's ThreadIdentifier() needs this. | 22 // Linux's ThreadIdentifier() needs this. |
| 19 #if defined(OS_LINUX) | 23 #if defined(OS_LINUX) |
| 20 # include <linux/unistd.h> | 24 # include <linux/unistd.h> |
| 21 #endif | 25 #endif |
| 22 | 26 |
| 23 #if defined(OS_WIN) | 27 #if defined(OS_WIN) |
| 24 #define snprintf _snprintf | 28 #define snprintf _snprintf |
| 25 typedef SSIZE_T ssize_t; | 29 typedef SSIZE_T ssize_t; |
| 26 #endif | 30 #endif |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 char* output); | 113 char* output); |
| 110 | 114 |
| 111 inline bool GetHeapProfile(void (*func)(void*, const char*, int), void* arg) { | 115 inline bool GetHeapProfile(void (*func)(void*, const char*, int), void* arg) { |
| 112 return false; | 116 return false; |
| 113 } | 117 } |
| 114 | 118 |
| 115 } | 119 } |
| 116 } | 120 } |
| 117 | 121 |
| 118 #endif // STORAGE_LEVELDB_PORT_PORT_CHROMIUM_H_ | 122 #endif // STORAGE_LEVELDB_PORT_PORT_CHROMIUM_H_ |
| OLD | NEW |