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 "components/tracing/child_memory_dump_manager_delegate_impl.h" | 5 #include "components/tracing/child/child_memory_dump_manager_delegate_impl.h" |
6 | 6 |
7 #include "base/single_thread_task_runner.h" | 7 #include "base/single_thread_task_runner.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "components/tracing/child_trace_message_filter.h" | 9 #include "components/tracing/child/child_trace_message_filter.h" |
10 #include "components/tracing/process_metrics_memory_dump_provider.h" | 10 #include "components/tracing/common/process_metrics_memory_dump_provider.h" |
11 | 11 |
12 namespace tracing { | 12 namespace tracing { |
13 | 13 |
14 namespace { | 14 namespace { |
15 void AbortDumpRequest(const base::trace_event::MemoryDumpRequestArgs& args, | 15 void AbortDumpRequest(const base::trace_event::MemoryDumpRequestArgs& args, |
16 const base::trace_event::MemoryDumpCallback& callback) { | 16 const base::trace_event::MemoryDumpCallback& callback) { |
17 if (!callback.is_null()) | 17 if (!callback.is_null()) |
18 callback.Run(args.dump_guid, false /* success */); | 18 callback.Run(args.dump_guid, false /* success */); |
19 } | 19 } |
20 } // namespace | 20 } // namespace |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 // Send the request up to the browser process' MessageDumpmanager. | 98 // Send the request up to the browser process' MessageDumpmanager. |
99 ctmf_->SendGlobalMemoryDumpRequest(args, callback); | 99 ctmf_->SendGlobalMemoryDumpRequest(args, callback); |
100 } | 100 } |
101 | 101 |
102 uint64_t ChildMemoryDumpManagerDelegateImpl::GetTracingProcessId() const { | 102 uint64_t ChildMemoryDumpManagerDelegateImpl::GetTracingProcessId() const { |
103 return tracing_process_id_; | 103 return tracing_process_id_; |
104 } | 104 } |
105 | 105 |
106 } // namespace tracing | 106 } // namespace tracing |
OLD | NEW |