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

Unified Diff: components/tracing/child_trace_message_filter.cc

Issue 343593006: Revert 276939 "Decouple IPC::MessageFilter from IPC::Channel" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/2057/src/
Patch Set: Created 6 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: components/tracing/child_trace_message_filter.cc
===================================================================
--- components/tracing/child_trace_message_filter.cc (revision 278168)
+++ components/tracing/child_trace_message_filter.cc (working copy)
@@ -15,16 +15,16 @@
ChildTraceMessageFilter::ChildTraceMessageFilter(
base::MessageLoopProxy* ipc_message_loop)
- : sender_(NULL),
+ : channel_(NULL),
ipc_message_loop_(ipc_message_loop) {}
-void ChildTraceMessageFilter::OnFilterAdded(IPC::Sender* sender) {
- sender_ = sender;
- sender_->Send(new TracingHostMsg_ChildSupportsTracing());
+void ChildTraceMessageFilter::OnFilterAdded(IPC::Channel* channel) {
+ channel_ = channel;
+ channel_->Send(new TracingHostMsg_ChildSupportsTracing());
}
void ChildTraceMessageFilter::OnFilterRemoved() {
- sender_ = NULL;
+ channel_ = NULL;
}
bool ChildTraceMessageFilter::OnMessageReceived(const IPC::Message& message) {
@@ -105,7 +105,7 @@
void ChildTraceMessageFilter::OnGetTraceBufferPercentFull() {
float bpf = TraceLog::GetInstance()->GetBufferPercentFull();
- sender_->Send(new TracingHostMsg_TraceBufferPercentFullReply(bpf));
+ channel_->Send(new TracingHostMsg_TraceBufferPercentFullReply(bpf));
}
void ChildTraceMessageFilter::OnSetWatchEvent(const std::string& category_name,
@@ -125,7 +125,7 @@
base::Bind(&ChildTraceMessageFilter::OnWatchEventMatched, this));
return;
}
- sender_->Send(new TracingHostMsg_WatchEventMatched);
+ channel_->Send(new TracingHostMsg_WatchEventMatched);
}
void ChildTraceMessageFilter::OnTraceDataCollected(
@@ -138,13 +138,13 @@
return;
}
if (events_str_ptr->data().size()) {
- sender_->Send(new TracingHostMsg_TraceDataCollected(
+ channel_->Send(new TracingHostMsg_TraceDataCollected(
events_str_ptr->data()));
}
if (!has_more_events) {
std::vector<std::string> category_groups;
TraceLog::GetInstance()->GetKnownCategoryGroups(&category_groups);
- sender_->Send(new TracingHostMsg_EndTracingAck(category_groups));
+ channel_->Send(new TracingHostMsg_EndTracingAck(category_groups));
}
}
@@ -160,11 +160,11 @@
has_more_events));
return;
}
- sender_->Send(new TracingHostMsg_MonitoringTraceDataCollected(
+ channel_->Send(new TracingHostMsg_MonitoringTraceDataCollected(
events_str_ptr->data()));
if (!has_more_events)
- sender_->Send(new TracingHostMsg_CaptureMonitoringSnapshotAck());
+ channel_->Send(new TracingHostMsg_CaptureMonitoringSnapshotAck());
}
} // namespace tracing
« no previous file with comments | « components/tracing/child_trace_message_filter.h ('k') | content/browser/dom_storage/dom_storage_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698