OLD | NEW |
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 #include "ipc/ipc_forwarding_message_filter.h" | 5 #include "ipc/ipc_forwarding_message_filter.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "ipc/ipc_message.h" |
9 | 10 |
10 namespace IPC { | 11 namespace IPC { |
11 | 12 |
12 ForwardingMessageFilter::ForwardingMessageFilter( | 13 ForwardingMessageFilter::ForwardingMessageFilter( |
13 const uint32* message_ids_to_filter, | 14 const uint32* message_ids_to_filter, |
14 size_t num_message_ids_to_filter, | 15 size_t num_message_ids_to_filter, |
15 base::TaskRunner* target_task_runner) | 16 base::TaskRunner* target_task_runner) |
16 : target_task_runner_(target_task_runner) { | 17 : target_task_runner_(target_task_runner) { |
17 DCHECK(target_task_runner_.get()); | 18 DCHECK(target_task_runner_.get()); |
18 for (size_t i = 0; i < num_message_ids_to_filter; i++) | 19 for (size_t i = 0; i < num_message_ids_to_filter; i++) |
(...skipping 28 matching lines...) Expand all Loading... |
47 } | 48 } |
48 | 49 |
49 target_task_runner_->PostTask(FROM_HERE, base::Bind(handler, message)); | 50 target_task_runner_->PostTask(FROM_HERE, base::Bind(handler, message)); |
50 return true; | 51 return true; |
51 } | 52 } |
52 | 53 |
53 ForwardingMessageFilter::~ForwardingMessageFilter() { | 54 ForwardingMessageFilter::~ForwardingMessageFilter() { |
54 } | 55 } |
55 | 56 |
56 } // namespace IPC | 57 } // namespace IPC |
OLD | NEW |