OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_trace_message_filter.h" | 5 #include "components/tracing/child_trace_message_filter.h" |
6 | 6 |
7 #include "base/message_loop/message_loop_proxy.h" | |
8 #include "base/trace_event/trace_event.h" | 7 #include "base/trace_event/trace_event.h" |
9 #include "components/tracing/child_memory_dump_manager_delegate_impl.h" | 8 #include "components/tracing/child_memory_dump_manager_delegate_impl.h" |
10 #include "components/tracing/tracing_messages.h" | 9 #include "components/tracing/tracing_messages.h" |
11 #include "ipc/ipc_channel.h" | 10 #include "ipc/ipc_channel.h" |
12 | 11 |
13 using base::trace_event::TraceLog; | 12 using base::trace_event::TraceLog; |
14 | 13 |
15 namespace tracing { | 14 namespace tracing { |
16 | 15 |
17 ChildTraceMessageFilter::ChildTraceMessageFilter( | 16 ChildTraceMessageFilter::ChildTraceMessageFilter( |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 void ChildTraceMessageFilter::OnGlobalMemoryDumpResponse(uint64 dump_guid, | 216 void ChildTraceMessageFilter::OnGlobalMemoryDumpResponse(uint64 dump_guid, |
218 bool success) { | 217 bool success) { |
219 DCHECK_NE(0U, pending_memory_dump_guid_); | 218 DCHECK_NE(0U, pending_memory_dump_guid_); |
220 pending_memory_dump_guid_ = 0; | 219 pending_memory_dump_guid_ = 0; |
221 if (pending_memory_dump_callback_.is_null()) | 220 if (pending_memory_dump_callback_.is_null()) |
222 return; | 221 return; |
223 pending_memory_dump_callback_.Run(dump_guid, success); | 222 pending_memory_dump_callback_.Run(dump_guid, success); |
224 } | 223 } |
225 | 224 |
226 } // namespace tracing | 225 } // namespace tracing |
OLD | NEW |