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

Side by Side Diff: components/tracing/child/child_trace_message_filter.h

Issue 2349713003: IPC::MessageFilter::OnFilterAdded: IPC::Sender -> IPC::Channel (Closed)
Patch Set: . Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_TRACING_CHILD_CHILD_TRACE_MESSAGE_FILTER_H_ 5 #ifndef COMPONENTS_TRACING_CHILD_CHILD_TRACE_MESSAGE_FILTER_H_
6 #define COMPONENTS_TRACING_CHILD_CHILD_TRACE_MESSAGE_FILTER_H_ 6 #define COMPONENTS_TRACING_CHILD_CHILD_TRACE_MESSAGE_FILTER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 11 matching lines...) Expand all
22 22
23 namespace tracing { 23 namespace tracing {
24 24
25 // This class sends and receives trace messages on child processes. 25 // This class sends and receives trace messages on child processes.
26 class TRACING_EXPORT ChildTraceMessageFilter : public IPC::MessageFilter { 26 class TRACING_EXPORT ChildTraceMessageFilter : public IPC::MessageFilter {
27 public: 27 public:
28 explicit ChildTraceMessageFilter( 28 explicit ChildTraceMessageFilter(
29 base::SingleThreadTaskRunner* ipc_task_runner); 29 base::SingleThreadTaskRunner* ipc_task_runner);
30 30
31 // IPC::MessageFilter implementation. 31 // IPC::MessageFilter implementation.
32 void OnFilterAdded(IPC::Sender* sender) override; 32 void OnFilterAdded(IPC::Channel* channel) override;
33 void OnFilterRemoved() override; 33 void OnFilterRemoved() override;
34 bool OnMessageReceived(const IPC::Message& message) override; 34 bool OnMessageReceived(const IPC::Message& message) override;
35 35
36 void SendGlobalMemoryDumpRequest( 36 void SendGlobalMemoryDumpRequest(
37 const base::trace_event::MemoryDumpRequestArgs& args, 37 const base::trace_event::MemoryDumpRequestArgs& args,
38 const base::trace_event::MemoryDumpCallback& callback); 38 const base::trace_event::MemoryDumpCallback& callback);
39 39
40 base::SingleThreadTaskRunner* ipc_task_runner() const { 40 base::SingleThreadTaskRunner* ipc_task_runner() const {
41 return ipc_task_runner_; 41 return ipc_task_runner_;
42 } 42 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 base::trace_event::MemoryDumpCallback pending_memory_dump_callback_; 94 base::trace_event::MemoryDumpCallback pending_memory_dump_callback_;
95 95
96 base::Time histogram_last_changed_; 96 base::Time histogram_last_changed_;
97 97
98 DISALLOW_COPY_AND_ASSIGN(ChildTraceMessageFilter); 98 DISALLOW_COPY_AND_ASSIGN(ChildTraceMessageFilter);
99 }; 99 };
100 100
101 } // namespace tracing 101 } // namespace tracing
102 102
103 #endif // COMPONENTS_TRACING_CHILD_CHILD_TRACE_MESSAGE_FILTER_H_ 103 #endif // COMPONENTS_TRACING_CHILD_CHILD_TRACE_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « components/nacl/renderer/pnacl_translation_resource_host.cc ('k') | components/tracing/child/child_trace_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698