| 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_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 "components/tracing/child_trace_message_filter.h" | 8 #include "components/tracing/child_trace_message_filter.h" |
| 9 | 9 |
| 10 namespace tracing { | 10 namespace tracing { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 // The ChildTraceMessageFilter could have been destroyed while hopping on the | 84 // The ChildTraceMessageFilter could have been destroyed while hopping on the |
| 85 // right thread. If this is the case, bail out. | 85 // right thread. If this is the case, bail out. |
| 86 if (!ctmf_) | 86 if (!ctmf_) |
| 87 return AbortDumpRequest(args, callback); | 87 return AbortDumpRequest(args, callback); |
| 88 | 88 |
| 89 // Send the request up to the browser process' MessageDumpmanager. | 89 // Send the request up to the browser process' MessageDumpmanager. |
| 90 ctmf_->SendGlobalMemoryDumpRequest(args, callback); | 90 ctmf_->SendGlobalMemoryDumpRequest(args, callback); |
| 91 } | 91 } |
| 92 | 92 |
| 93 uint64 ChildMemoryDumpManagerDelegateImpl::GetTracingProcessId() const { | 93 uint64_t ChildMemoryDumpManagerDelegateImpl::GetTracingProcessId() const { |
| 94 return tracing_process_id_; | 94 return tracing_process_id_; |
| 95 } | 95 } |
| 96 | 96 |
| 97 } // namespace tracing | 97 } // namespace tracing |
| OLD | NEW |