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

Unified Diff: components/tracing/child_trace_message_filter.h

Issue 1142063003: content/child: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix. Created 5 years, 7 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.h
diff --git a/components/tracing/child_trace_message_filter.h b/components/tracing/child_trace_message_filter.h
index a6453a3e640acb79704c64c89b449147614b8af8..d380b4afefc315ffff4aab496689e295bbaafda0 100644
--- a/components/tracing/child_trace_message_filter.h
+++ b/components/tracing/child_trace_message_filter.h
@@ -11,7 +11,7 @@
#include "ipc/message_filter.h"
namespace base {
-class MessageLoopProxy;
+class SingleThreadTaskRunner;
}
namespace tracing {
@@ -19,7 +19,8 @@ namespace tracing {
// This class sends and receives trace messages on child processes.
class ChildTraceMessageFilter : public IPC::MessageFilter {
public:
- explicit ChildTraceMessageFilter(base::MessageLoopProxy* ipc_message_loop);
+ explicit ChildTraceMessageFilter(
+ base::SingleThreadTaskRunner* ipc_task_runner);
// IPC::MessageFilter implementation.
void OnFilterAdded(IPC::Sender* sender) override;
@@ -30,7 +31,9 @@ class ChildTraceMessageFilter : public IPC::MessageFilter {
const base::trace_event::MemoryDumpRequestArgs& args,
const base::trace_event::MemoryDumpCallback& callback);
- base::MessageLoopProxy* ipc_message_loop() const { return ipc_message_loop_; }
+ base::SingleThreadTaskRunner* ipc_task_runner() const {
+ return ipc_task_runner_;
+ }
protected:
~ChildTraceMessageFilter() override;
@@ -67,7 +70,7 @@ class ChildTraceMessageFilter : public IPC::MessageFilter {
void OnProcessMemoryDumpDone(uint64 dump_guid, bool success);
IPC::Sender* sender_;
- base::MessageLoopProxy* ipc_message_loop_;
+ base::SingleThreadTaskRunner* ipc_task_runner_;
// guid of the outstanding request (to the Browser's MemoryDumpManager), if
// any. 0 if there is no request pending.
« no previous file with comments | « components/tracing/child_memory_dump_manager_delegate_impl.cc ('k') | components/tracing/child_trace_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698