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

Side by Side Diff: base/memory/shared_memory_handle_mac.cc

Issue 2535213002: [WIP] Add SharedMemoryTracker to dump base::SharedMemory usage
Patch Set: Implement buckets Created 3 years, 11 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698