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

Side by Side Diff: content/child/web_process_memory_dump_impl.cc

Issue 1642023007: Refactoring: Move functions from WebMemoryDumpProviderAdapter to PartitionAllocMemoryDumpProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 "content/child/web_process_memory_dump_impl.h" 5 #include "content/child/web_process_memory_dump_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/memory/discardable_memory.h" 9 #include "base/memory/discardable_memory.h"
10 #include "base/trace_event/process_memory_dump.h" 10 #include "base/trace_event/process_memory_dump.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 blink::WebMemoryAllocatorDump* 155 blink::WebMemoryAllocatorDump*
156 WebProcessMemoryDumpImpl::CreateDiscardableMemoryAllocatorDump( 156 WebProcessMemoryDumpImpl::CreateDiscardableMemoryAllocatorDump(
157 const std::string& name, 157 const std::string& name,
158 base::DiscardableMemory* discardable) { 158 base::DiscardableMemory* discardable) {
159 base::trace_event::MemoryAllocatorDump* dump = 159 base::trace_event::MemoryAllocatorDump* dump =
160 discardable->CreateMemoryAllocatorDump(name.c_str(), 160 discardable->CreateMemoryAllocatorDump(name.c_str(),
161 process_memory_dump_); 161 process_memory_dump_);
162 return createWebMemoryAllocatorDump(dump); 162 return createWebMemoryAllocatorDump(dump);
163 } 163 }
164 164
165 base::trace_event::ProcessMemoryDump*
166 WebProcessMemoryDumpImpl::getProcessMemoryDump() {
167 return process_memory_dump_;
168 }
169
165 } // namespace content 170 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698