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

Unified Diff: content/browser/tracing/tracing_controller_impl.h

Issue 1042723002: [tracing] IPC messages and stubs for inter-process memory dumps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ipc_2_delegate
Patch Set: Rebase Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/tracing/tracing_controller_impl.h
diff --git a/content/browser/tracing/tracing_controller_impl.h b/content/browser/tracing/tracing_controller_impl.h
index a5563a8547ce9057fc9d1b331881cf67f7a4c859..d22402cdafecc669b3ab8adc7aeb1b2845ba0a38 100644
--- a/content/browser/tracing/tracing_controller_impl.h
+++ b/content/browser/tracing/tracing_controller_impl.h
@@ -10,6 +10,7 @@
#include <vector>
#include "base/lazy_instance.h"
+#include "base/trace_event/memory_dump_manager.h"
#include "content/public/browser/tracing_controller.h"
namespace base {
@@ -22,7 +23,9 @@ namespace content {
class TraceMessageFilter;
class TracingUI;
-class TracingControllerImpl : public TracingController {
+class TracingControllerImpl
+ : public TracingController,
+ public base::trace_event::MemoryDumpManagerDelegate {
public:
static TracingControllerImpl* GetInstance();
@@ -54,6 +57,11 @@ class TracingControllerImpl : public TracingController {
void RegisterTracingUI(TracingUI* tracing_ui);
void UnregisterTracingUI(TracingUI* tracing_ui);
+ // base::trace_event::MemoryDumpManagerDelegate implementation.
+ void RequestGlobalMemoryDump(
+ const base::trace_event::MemoryDumpRequestArgs& args,
+ const base::trace_event::MemoryDumpCallback& callback) override;
+
private:
typedef std::set<scoped_refptr<TraceMessageFilter> > TraceMessageFilterSet;
@@ -119,7 +127,9 @@ class TracingControllerImpl : public TracingController {
void OnTraceLogStatusReply(TraceMessageFilter* trace_message_filter,
const base::trace_event::TraceLogStatus& status);
-
+ void OnProcessMemoryDumpResponse(TraceMessageFilter* trace_message_filter,
+ uint64 dump_guid,
+ bool success);
void OnWatchEventMatched();
void SetEnabledOnFileThread(

Powered by Google App Engine
This is Rietveld 408576698