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

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

Issue 1262333005: [tracing] Introduce MemoryDumpArgs to enable light and heavy dumps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 4 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
« no previous file with comments | « content/child/web_memory_dump_provider_adapter.h ('k') | content/common/gpu/gpu_channel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_memory_dump_provider_adapter.h" 5 #include "content/child/web_memory_dump_provider_adapter.h"
6 6
7 #include "content/child/web_process_memory_dump_impl.h" 7 #include "content/child/web_process_memory_dump_impl.h"
8 #include "third_party/WebKit/public/platform/WebMemoryDumpProvider.h" 8 #include "third_party/WebKit/public/platform/WebMemoryDumpProvider.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 WebMemoryDumpProviderAdapter::WebMemoryDumpProviderAdapter( 12 WebMemoryDumpProviderAdapter::WebMemoryDumpProviderAdapter(
13 blink::WebMemoryDumpProvider* wmdp) 13 blink::WebMemoryDumpProvider* wmdp)
14 : web_memory_dump_provider_(wmdp), is_registered_(false) { 14 : web_memory_dump_provider_(wmdp), is_registered_(false) {
15 } 15 }
16 16
17 WebMemoryDumpProviderAdapter::~WebMemoryDumpProviderAdapter() { 17 WebMemoryDumpProviderAdapter::~WebMemoryDumpProviderAdapter() {
18 DCHECK(!is_registered_); 18 DCHECK(!is_registered_);
19 } 19 }
20 20
21 bool WebMemoryDumpProviderAdapter::OnMemoryDump( 21 bool WebMemoryDumpProviderAdapter::OnMemoryDump(
22 const base::trace_event::MemoryDumpArgs& args,
22 base::trace_event::ProcessMemoryDump* pmd) { 23 base::trace_event::ProcessMemoryDump* pmd) {
24 // TODO(ssid): Expose MemoryDumpArgs to Blink and send args to the dump
25 // providers in Blink (crbug.com/499731).
23 WebProcessMemoryDumpImpl web_pmd_impl(pmd); 26 WebProcessMemoryDumpImpl web_pmd_impl(pmd);
24 return web_memory_dump_provider_->onMemoryDump(&web_pmd_impl); 27 return web_memory_dump_provider_->onMemoryDump(&web_pmd_impl);
25 } 28 }
26 29
27 } // namespace content 30 } // namespace content
OLDNEW
« no previous file with comments | « content/child/web_memory_dump_provider_adapter.h ('k') | content/common/gpu/gpu_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698