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

Side by Side Diff: ipc/ipc_forwarding_message_filter.cc

Issue 245443005: Move IPC::MessageFilter and router to a separate file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix gn build Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « ipc/ipc_forwarding_message_filter.h ('k') | ipc/ipc_sync_message_filter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
OLDNEW
« no previous file with comments | « ipc/ipc_forwarding_message_filter.h ('k') | ipc/ipc_sync_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698