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

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

Issue 1173263004: [tracing] Send unique tracing process id for cross-process memory dumps identification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing DCHECK while setting id. Created 5 years, 6 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/trace_message_filter.h
diff --git a/content/browser/tracing/trace_message_filter.h b/content/browser/tracing/trace_message_filter.h
index 3bc7cccbaecc99523b7c0e94342cbde57a629c3a..2ccff8e2c8a85f069de9c9f14ddeddb1aa910e14 100644
--- a/content/browser/tracing/trace_message_filter.h
+++ b/content/browser/tracing/trace_message_filter.h
@@ -19,7 +19,7 @@ namespace content {
// See also: child_trace_message_filter.h
class TraceMessageFilter : public BrowserMessageFilter {
public:
- TraceMessageFilter();
+ explicit TraceMessageFilter(int child_process_id);
// BrowserMessageFilter implementation.
void OnChannelClosing() override;
@@ -61,6 +61,9 @@ class TraceMessageFilter : public BrowserMessageFilter {
// ChildTraceMessageFilter exists:
bool has_child_;
+ // Hash of id of the child process.
+ int tracing_process_id_;
+
// Awaiting ack for previously sent SendEndTracing
bool is_awaiting_end_ack_;
// Awaiting ack for previously sent SendCaptureMonitoringSnapshot

Powered by Google App Engine
This is Rietveld 408576698