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

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: Nits. 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 0d1f05cf8b836a6e2bc946e0d5241e63fb2e2946..4f0fa9371d226b2fc667c9a476cff44c8bd768db 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;
@@ -60,6 +60,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