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_memory_dump_provider_adapter.h" | 5 #include "content/child/web_memory_dump_provider_adapter.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/trace_event/trace_event_argument.h" | 9 #include "base/trace_event/trace_event_argument.h" |
10 #include "content/child/web_process_memory_dump_impl.h" | 10 #include "content/child/web_process_memory_dump_impl.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 level = blink::WebMemoryDumpLevelOfDetail::Detailed; | 33 level = blink::WebMemoryDumpLevelOfDetail::Detailed; |
34 break; | 34 break; |
35 default: | 35 default: |
36 NOTREACHED(); | 36 NOTREACHED(); |
37 return false; | 37 return false; |
38 } | 38 } |
39 WebProcessMemoryDumpImpl web_pmd_impl(args.level_of_detail, pmd); | 39 WebProcessMemoryDumpImpl web_pmd_impl(args.level_of_detail, pmd); |
40 return web_memory_dump_provider_->onMemoryDump(level, &web_pmd_impl); | 40 return web_memory_dump_provider_->onMemoryDump(level, &web_pmd_impl); |
41 } | 41 } |
42 | 42 |
43 void WebMemoryDumpProviderAdapter::OnHeapProfilingEnabled(bool enabled) { | 43 void WebMemoryDumpProviderAdapter::OnHeapProfilingEnabled() { |
44 if (!web_memory_dump_provider_->supportsHeapProfiling()) | 44 if (!web_memory_dump_provider_->supportsHeapProfiling()) |
45 return; | 45 return; |
46 web_memory_dump_provider_->onHeapProfilingEnabled(enabled); | 46 web_memory_dump_provider_->onHeapProfilingEnabled(); |
47 } | 47 } |
48 | 48 |
49 } // namespace content | 49 } // namespace content |
OLD | NEW |