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

Side by Side Diff: base/memory/shared_memory_handle_win.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 "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace base { 9 namespace base {
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } 69 }
70 70
71 void SharedMemoryHandle::SetOwnershipPassesToIPC(bool ownership_passes) { 71 void SharedMemoryHandle::SetOwnershipPassesToIPC(bool ownership_passes) {
72 ownership_passes_to_ipc_ = ownership_passes; 72 ownership_passes_to_ipc_ = ownership_passes;
73 } 73 }
74 74
75 bool SharedMemoryHandle::OwnershipPassesToIPC() const { 75 bool SharedMemoryHandle::OwnershipPassesToIPC() const {
76 return ownership_passes_to_ipc_; 76 return ownership_passes_to_ipc_;
77 } 77 }
78 78
79 bool GetIDFromSharedMemoryHandle(const SharedMemoryHandle& handle,
80 SharedMemoryHandleID* id) {
81 // TODO(hajimehoshi): Implement this.
82 return true;
83 }
84
85 std::string GetSharedMemoryHandleIDString(const SharedMemoryHandleID& id) {
86 // TODO(hajimehoshi): Implement this.
87 return "";
88 }
89
79 } // namespace base 90 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698