OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "base/memory/shared_memory_handle.h" | 5 #include "base/memory/shared_memory_handle.h" |
6 | 6 |
7 #include <mach/mach_vm.h> | 7 #include <mach/mach_vm.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <sys/mman.h> | 9 #include <sys/mman.h> |
10 #include <unistd.h> | 10 #include <unistd.h> |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 break; | 209 break; |
210 case MACH: | 210 case MACH: |
211 memory_object_ = handle.memory_object_; | 211 memory_object_ = handle.memory_object_; |
212 size_ = handle.size_; | 212 size_ = handle.size_; |
213 pid_ = handle.pid_; | 213 pid_ = handle.pid_; |
214 ownership_passes_to_ipc_ = handle.ownership_passes_to_ipc_; | 214 ownership_passes_to_ipc_ = handle.ownership_passes_to_ipc_; |
215 break; | 215 break; |
216 } | 216 } |
217 } | 217 } |
218 | 218 |
| 219 bool GetIDFromSharedMemoryHandle(const SharedMemoryHandle& handle, |
| 220 SharedMemoryHandleID* id) { |
| 221 // TODO(hajimehoshi): Implement this. |
| 222 return true; |
| 223 } |
| 224 |
| 225 std::string GetSharedMemoryHandleIDString(const SharedMemoryHandleID& id) { |
| 226 // TODO(hajimehoshi): Implement this. |
| 227 return ""; |
| 228 } |
| 229 |
219 } // namespace base | 230 } // namespace base |
OLD | NEW |