summaryrefslogtreecommitdiffstats
path: root/ipc/ipc.gyp
diff options
context:
space:
mode:
authorjdduke@chromium.org <jdduke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-26 05:18:04 +0000
committerjdduke@chromium.org <jdduke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-26 05:18:04 +0000
commitb51352abcdd42eba8690394de4f30bcc1aa58ce7 (patch)
treeffa8026d30d1169711a62b6cfba88cd0a93c0e03 /ipc/ipc.gyp
parent5c66969c27af18993769e48d023e6614e3e02d66 (diff)
downloadchromium_src-b51352abcdd42eba8690394de4f30bcc1aa58ce7.zip
chromium_src-b51352abcdd42eba8690394de4f30bcc1aa58ce7.tar.gz
chromium_src-b51352abcdd42eba8690394de4f30bcc1aa58ce7.tar.bz2
Allow MessageFilters to restrict listening to specific message classes
ChannelProxy currently offers messages to all member MessageFilters. It turns out that a good portion of the most common message types will never be filtered, making the O(N) filter walk an unnecessary affair. To prevent this, allow MessageFilters to indicate which (if any) subset of message classes they may filter, allowing the ChannelProxy to refine the list of filters that are offered a particular message. This saves ~35us per message received on the browser IO thread for a typical Android device. Relanding with a few more guards for MessageFilter removal, access and message class subscription. BUG=340881 TBR=asargent@chromium.org Review URL: https://codereview.chromium.org/142923005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253361 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc.gyp')
-rw-r--r--ipc/ipc.gyp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ipc/ipc.gyp b/ipc/ipc.gyp
index 95c6fd12..e546a99 100644
--- a/ipc/ipc.gyp
+++ b/ipc/ipc.gyp
@@ -46,6 +46,7 @@
'sources': [
'file_descriptor_set_posix_unittest.cc',
'ipc_channel_posix_unittest.cc',
+ 'ipc_channel_proxy_unittest.cc',
'ipc_channel_unittest.cc',
'ipc_fuzzing_tests.cc',
'ipc_message_unittest.cc',