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

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

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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_MEMORY_SHARED_MEMORY_H_ 5 #ifndef BASE_MEMORY_SHARED_MEMORY_H_
6 #define BASE_MEMORY_SHARED_MEMORY_H_ 6 #define BASE_MEMORY_SHARED_MEMORY_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 int mapped_file_; 294 int mapped_file_;
295 int readonly_mapped_file_; 295 int readonly_mapped_file_;
296 #endif 296 #endif
297 size_t mapped_size_; 297 size_t mapped_size_;
298 void* memory_; 298 void* memory_;
299 bool read_only_; 299 bool read_only_;
300 size_t requested_size_; 300 size_t requested_size_;
301 301
302 DISALLOW_COPY_AND_ASSIGN(SharedMemory); 302 DISALLOW_COPY_AND_ASSIGN(SharedMemory);
303 }; 303 };
304
304 } // namespace base 305 } // namespace base
305 306
306 #endif // BASE_MEMORY_SHARED_MEMORY_H_ 307 #endif // BASE_MEMORY_SHARED_MEMORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698