| 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 "content/child/web_process_memory_dump_impl.h" | 5 #include "content/child/web_process_memory_dump_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/memory/discardable_memory.h" | 9 #include "base/memory/discardable_memory.h" |
| 8 #include "base/trace_event/process_memory_dump.h" | 10 #include "base/trace_event/process_memory_dump.h" |
| 9 #include "content/child/web_memory_allocator_dump_impl.h" | 11 #include "content/child/web_memory_allocator_dump_impl.h" |
| 10 #include "skia/ext/skia_trace_memory_dump_impl.h" | 12 #include "skia/ext/skia_trace_memory_dump_impl.h" |
| 11 | 13 |
| 12 namespace content { | 14 namespace content { |
| 13 | 15 |
| 14 WebProcessMemoryDumpImpl::WebProcessMemoryDumpImpl() | 16 WebProcessMemoryDumpImpl::WebProcessMemoryDumpImpl() |
| 15 : owned_process_memory_dump_( | 17 : owned_process_memory_dump_( |
| 16 new base::trace_event::ProcessMemoryDump(nullptr)), | 18 new base::trace_event::ProcessMemoryDump(nullptr)), |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 WebProcessMemoryDumpImpl::CreateDiscardableMemoryAllocatorDump( | 156 WebProcessMemoryDumpImpl::CreateDiscardableMemoryAllocatorDump( |
| 155 const std::string& name, | 157 const std::string& name, |
| 156 base::DiscardableMemory* discardable) { | 158 base::DiscardableMemory* discardable) { |
| 157 base::trace_event::MemoryAllocatorDump* dump = | 159 base::trace_event::MemoryAllocatorDump* dump = |
| 158 discardable->CreateMemoryAllocatorDump(name.c_str(), | 160 discardable->CreateMemoryAllocatorDump(name.c_str(), |
| 159 process_memory_dump_); | 161 process_memory_dump_); |
| 160 return createWebMemoryAllocatorDump(dump); | 162 return createWebMemoryAllocatorDump(dump); |
| 161 } | 163 } |
| 162 | 164 |
| 163 } // namespace content | 165 } // namespace content |
| OLD | NEW |