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

Issue 5978003: Make IPC::Channel::Listener:OnMessageReceived have a return value indicating ... (Closed)

Created:
10 years ago by jam
Modified:
9 years, 7 months ago
CC:
chromium-reviews, pam+watch_chromium.org, michaeln, cbentzel+watch_chromium.org, amit, brettw-cc_chromium.org, jam, apatrick_chromium, kinuko, darin-cc_chromium.org, Paweł Hajdan Jr., stuartmorgan+watch_chromium.org, native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Make IPC::Channel::Listener:OnMessageReceived have a return value indicating whether a message was processed or not. TBR=brettw Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=70139

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+643 lines, -412 lines) Patch
M chrome/browser/appcache/appcache_dispatcher_host.cc View 1 chunk +10 lines, -11 lines 0 comments Download
M chrome/browser/automation/automation_provider.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/automation/automation_provider.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/automation/chrome_frame_automation_provider.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/automation/chrome_frame_automation_provider.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/gpu_process_host.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/gpu_process_host.cc View 3 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/gpu_process_host_ui_shim.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/gpu_process_host_ui_shim.cc View 3 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/importer/firefox_importer_unittest_utils_mac.cc View 1 2 3 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/nacl_host/nacl_broker_host_win.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/nacl_host/nacl_broker_host_win.cc View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/nacl_host/nacl_process_host.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/nacl_host/nacl_process_host.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/plugin_data_remover.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/plugin_data_remover.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/plugin_process_host.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/plugin_process_host.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/ppapi_plugin_process_host.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ppapi_plugin_process_host.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/profile_import_process_host.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/profile_import_process_host.cc View 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/browser_render_process_host.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/browser_render_process_host.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/renderer_host/mock_render_process_host.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/mock_render_process_host.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/render_view_host.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 4 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/render_widget_host.cc View 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/test/test_render_view_host.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/test/test_render_view_host.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/service/service_process_control.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/service/service_process_control.cc View 1 chunk +9 lines, -6 lines 0 comments Download
M chrome/browser/utility_process_host.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/utility_process_host.cc View 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/worker_host/worker_process_host.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/worker_host/worker_process_host.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/common/appcache/appcache_dispatcher.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/common/child_process_host.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/child_process_host.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/common/child_thread.h View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/common/child_thread.cc View 2 chunks +9 lines, -10 lines 0 comments Download
M chrome/common/file_system/file_system_dispatcher.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/message_router.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/message_router.cc View 2 chunks +7 lines, -7 lines 0 comments Download
M chrome/common/resource_dispatcher.h View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/common/socket_stream_dispatcher.h View 3 chunks +4 lines, -5 lines 0 comments Download
M chrome/common/webmessageportchannel_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/webmessageportchannel_impl.cc View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/gpu/gpu_channel.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/gpu/gpu_channel.cc View 3 chunks +12 lines, -10 lines 0 comments Download
M chrome/gpu/gpu_command_buffer_stub.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/gpu/gpu_command_buffer_stub.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/gpu/gpu_thread.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/gpu/gpu_thread.cc View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/gpu/gpu_video_decoder.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/gpu/gpu_video_decoder.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/gpu/gpu_video_service.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/gpu/gpu_video_service.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/nacl/broker_thread.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/nacl/broker_thread.cc View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/nacl/nacl_thread.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/nacl/nacl_thread.cc View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/plugin/command_buffer_stub.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/plugin/command_buffer_stub.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/plugin/npobject_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/plugin/npobject_proxy.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/plugin/npobject_stub.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/plugin/npobject_stub.cc View 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/plugin/plugin_channel.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/plugin/plugin_channel.cc View 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/plugin/plugin_channel_base.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/plugin/plugin_channel_base.cc View 3 chunks +8 lines, -5 lines 0 comments Download
M chrome/plugin/plugin_thread.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/plugin/plugin_thread.cc View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/plugin/webplugin_delegate_stub.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/plugin/webplugin_delegate_stub.cc View 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/ppapi_plugin/ppapi_thread.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/ppapi_plugin/ppapi_thread.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/profile_import/profile_import_thread.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/profile_import/profile_import_thread.cc View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/renderer/command_buffer_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/command_buffer_proxy.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/renderer/device_orientation_dispatcher.h View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/renderer/devtools_agent.h View 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/renderer/devtools_client.h View 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/renderer/geolocation_dispatcher_old.h View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/renderer/gpu_channel_host.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/gpu_channel_host.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/gpu_video_decoder_host.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/gpu_video_decoder_host.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/renderer/indexed_db_dispatcher.h View 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/renderer/mock_render_thread.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/mock_render_thread.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/renderer/notification_provider.h View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/renderer/plugin_channel_host.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/plugin_channel_host.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/renderer/render_thread.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/render_thread.cc View 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/renderer/render_view.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/render_view.cc View 2 chunks +10 lines, -8 lines 0 comments Download
M chrome/renderer/render_widget.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/render_widget.cc View 1 chunk +23 lines, -19 lines 0 comments Download
M chrome/renderer/renderer_main_unittest.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/renderer/safe_browsing/render_view_fake_resources_test.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/safe_browsing/render_view_fake_resources_test.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/renderer/speech_input_dispatcher.h View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/renderer/webplugin_delegate_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/webplugin_delegate_proxy.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/renderer/websharedworker_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/websharedworker_proxy.cc View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/renderer/webworker_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/webworker_proxy.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/service/service_ipc_server.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/service/service_ipc_server.cc View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/service/service_utility_process_host.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/service/service_utility_process_host.cc View 4 chunks +6 lines, -2 lines 0 comments Download
M chrome/test/automation/automation_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/automation/automation_proxy.cc View 2 chunks +7 lines, -7 lines 0 comments Download
M chrome/test/automation/automation_proxy_uitest.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/automation/automation_proxy_uitest.cc View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/test/automation/tab_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/automation/tab_proxy.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/utility/utility_thread.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/utility/utility_thread.cc View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/worker/websharedworker_stub.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/worker/websharedworker_stub.cc View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/worker/webworker_stub.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/worker/webworker_stub.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/worker/worker_thread.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/worker/worker_thread.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M chrome_frame/cfproxy.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome_frame/cfproxy_private.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome_frame/cfproxy_proxy.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome_frame/cfproxy_test.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome_frame/chrome_frame_delegate.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome_frame/chrome_frame_delegate.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M chrome_frame/external_tab.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome_frame/external_tab.cc View 2 chunks +4 lines, -1 line 0 comments Download
M chrome_frame/test/net/test_automation_provider.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome_frame/test/net/test_automation_provider.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M ipc/ipc_channel.h View 1 chunk +3 lines, -2 lines 0 comments Download
M ipc/ipc_channel_posix_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ipc/ipc_channel_proxy.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ipc/ipc_channel_proxy.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M ipc/ipc_fuzzing_tests.cc View 3 chunks +4 lines, -2 lines 0 comments Download
M ipc/ipc_message_macros.h View 1 chunk +4 lines, -5 lines 0 comments Download
M ipc/ipc_send_fds_test.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download
M ipc/ipc_sync_channel.h View 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_sync_channel.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M ipc/ipc_sync_channel_unittest.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M ipc/ipc_sync_message_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ipc/ipc_tests.cc View 9 chunks +9 lines, -5 lines 0 comments Download
M ipc/sync_socket_unittest.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M ppapi/proxy/dispatcher.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/dispatcher.cc View 1 chunk +9 lines, -5 lines 0 comments Download
M ppapi/proxy/interface_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/plugin_dispatcher.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/plugin_dispatcher.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M ppapi/proxy/ppb_audio_config_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppb_audio_config_proxy.cc View 1 chunk +4 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_audio_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppb_audio_proxy.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_buffer_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppb_buffer_proxy.cc View 1 chunk +4 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_char_set_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppb_char_set_proxy.cc View 2 chunks +4 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_core_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppb_core_proxy.cc View 1 chunk +4 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_cursor_control_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppb_cursor_control_proxy.cc View 2 chunks +4 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_flash_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppb_flash_proxy.cc View 2 chunks +4 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_font_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppb_font_proxy.cc View 2 chunks +4 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_fullscreen_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppb_fullscreen_proxy.cc View 1 chunk +4 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_graphics_2d_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppb_graphics_2d_proxy.cc View 2 chunks +4 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_image_data_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppb_image_data_proxy.cc View 1 chunk +4 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_instance_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppb_instance_proxy.cc View 2 chunks +4 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_pdf_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppb_pdf_proxy.cc View 1 chunk +4 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_testing_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppb_testing_proxy.cc View 2 chunks +4 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_url_loader_proxy.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_url_loader_proxy.cc View 3 chunks +8 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_url_request_info_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppb_url_request_info_proxy.cc View 2 chunks +4 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_url_response_info_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppb_url_response_info_proxy.cc View 1 chunk +4 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_var_deprecated_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppb_var_deprecated_proxy.cc View 2 chunks +4 lines, -1 line 0 comments Download
M ppapi/proxy/ppp_class_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppp_class_proxy.cc View 2 chunks +4 lines, -1 line 0 comments Download
M ppapi/proxy/ppp_instance_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppp_instance_proxy.cc View 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
jam
This is the change we discussed. I'm going to check it in as TBR while ...
10 years ago (2010-12-24 06:18:53 UTC) #1
brettw
LGTM
10 years ago (2010-12-24 21:18:59 UTC) #2
darin (slow to review)
Can you say more about how this will be used? I'm interested, because I originally ...
9 years, 12 months ago (2010-12-25 22:32:06 UTC) #3
brettw
On Sat, Dec 25, 2010 at 2:31 PM, Darin Fisher <darin@chromium.org> wrote: > Can you ...
9 years, 12 months ago (2010-12-25 23:32:43 UTC) #4
jam
This is orthogonal to the filter (which I only kept in chrome\browser, so that it ...
9 years, 12 months ago (2010-12-26 21:43:24 UTC) #5
darin (slow to review)
So, we wouldn't want to just invent more message classes? Instead of having listeners decide ...
9 years, 11 months ago (2011-01-03 21:21:37 UTC) #6
jam
9 years, 11 months ago (2011-01-04 19:47:16 UTC) #7
I think it's nice to have IPC message filtering work the same on all
threads.  On the IO thread, we don't just call all filters, but we expect
filters to tell us when they dispatched a message so that we stop.  Why
should the UI thread be different?

On Mon, Jan 3, 2011 at 1:21 PM, Darin Fisher <darin@chromium.org> wrote:

> So, we wouldn't want to just invent more message classes?  Instead of
> having listeners decide if they handle a message, we could just have a
> single listener per message class.
>
> -Darin
>
>
> On Sun, Dec 26, 2010 at 1:43 PM, John Abd-El-Malek <jam@chromium.org>wrote:
>
>> This is orthogonal to the filter (which I only kept in chrome\browser, so
>> that it uses BrowserThread) case.  I found a lot of existing code, and
>> potential for a lot more, in places like RenderView and RenderViewHost that
>> want to filter messages on the main thread.  Rather than add a new interface
>> that is almost like IPC::Channel::Listener just to get a return value of
>> whether a message was processed or not, I figured we can have these two
>> classes keep a collection of Listener objects.
>>
>> On Sat, Dec 25, 2010 at 2:31 PM, Darin Fisher <darin@chromium.org> wrote:
>>
>>> Can you say more about how this will be used?  I'm interested, because I
>>> originally resisted adding a boolean return value here.  If it is used to
>>> implement message filters, then what about the case where a particular
>>> listener wants to handle IPCs on a separate thread?
>>>
>>> -Darin
>>>
>>>
>>>
>>> On Thu, Dec 23, 2010 at 10:18 PM, <jam@chromium.org> wrote:
>>>
>>>> Reviewers: brettw,
>>>>
>>>> Message:
>>>> This is the change we discussed.  I'm going to check it in as TBR while
>>>> the tree
>>>> is unused, given how many files this touches.
>>>>
>>>> Description:
>>>> Make IPC::Channel::Listener:OnMessageReceived have a return value
>>>> indicating
>>>> whether a message was processed or not.
>>>>
>>>> TBR=brettw
>>>>
>>>> Please review this at http://codereview.chromium.org/5978003/
>>>>
>>>> SVN Base: svn://chrome-svn/chrome/trunk/src/
>>>>
>>>> Affected files:
>>>>  M     chrome/browser/appcache/appcache_dispatcher_host.cc
>>>>  M     chrome/browser/automation/automation_provider.h
>>>>  M     chrome/browser/automation/automation_provider.cc
>>>>  M     chrome/browser/automation/chrome_frame_automation_provider.h
>>>>  M     chrome/browser/automation/chrome_frame_automation_provider.cc
>>>>  M     chrome/browser/automation/testing_automation_provider.h
>>>>  M     chrome/browser/automation/testing_automation_provider.cc
>>>>  M     chrome/browser/gpu_process_host.h
>>>>  M     chrome/browser/gpu_process_host.cc
>>>>  M     chrome/browser/gpu_process_host_ui_shim.h
>>>>  M     chrome/browser/gpu_process_host_ui_shim.cc
>>>>  M     chrome/browser/importer/firefox_importer_unittest_utils_mac.cc
>>>>  M     chrome/browser/nacl_host/nacl_broker_host_win.h
>>>>  M     chrome/browser/nacl_host/nacl_broker_host_win.cc
>>>>  M     chrome/browser/nacl_host/nacl_process_host.h
>>>>  M     chrome/browser/nacl_host/nacl_process_host.cc
>>>>  M     chrome/browser/plugin_data_remover.h
>>>>  M     chrome/browser/plugin_data_remover.cc
>>>>  M     chrome/browser/plugin_process_host.h
>>>>  M     chrome/browser/plugin_process_host.cc
>>>>  M     chrome/browser/ppapi_plugin_process_host.h
>>>>  M     chrome/browser/ppapi_plugin_process_host.cc
>>>>  M     chrome/browser/profile_import_process_host.h
>>>>  M     chrome/browser/profile_import_process_host.cc
>>>>  M     chrome/browser/renderer_host/browser_render_process_host.h
>>>>  M     chrome/browser/renderer_host/browser_render_process_host.cc
>>>>  M     chrome/browser/renderer_host/mock_render_process_host.h
>>>>  M     chrome/browser/renderer_host/mock_render_process_host.cc
>>>>  M     chrome/browser/renderer_host/render_view_host.h
>>>>  M     chrome/browser/renderer_host/render_view_host.cc
>>>>  M     chrome/browser/renderer_host/render_widget_host.h
>>>>  M     chrome/browser/renderer_host/render_widget_host.cc
>>>>  M     chrome/browser/renderer_host/test/test_render_view_host.h
>>>>  M     chrome/browser/renderer_host/test/test_render_view_host.cc
>>>>  M     chrome/browser/service/service_process_control.h
>>>>  M     chrome/browser/service/service_process_control.cc
>>>>  M     chrome/browser/utility_process_host.h
>>>>  M     chrome/browser/utility_process_host.cc
>>>>  M     chrome/browser/worker_host/worker_process_host.h
>>>>  M     chrome/browser/worker_host/worker_process_host.cc
>>>>  M     chrome/common/appcache/appcache_dispatcher.h
>>>>  M     chrome/common/child_process_host.h
>>>>  M     chrome/common/child_process_host.cc
>>>>  M     chrome/common/child_thread.h
>>>>  M     chrome/common/child_thread.cc
>>>>  M     chrome/common/file_system/file_system_dispatcher.h
>>>>  M     chrome/common/message_router.h
>>>>  M     chrome/common/message_router.cc
>>>>  M     chrome/common/resource_dispatcher.h
>>>>  M     chrome/common/socket_stream_dispatcher.h
>>>>  M     chrome/common/webmessageportchannel_impl.h
>>>>  M     chrome/common/webmessageportchannel_impl.cc
>>>>  M     chrome/gpu/gpu_channel.h
>>>>  M     chrome/gpu/gpu_channel.cc
>>>>  M     chrome/gpu/gpu_command_buffer_stub.h
>>>>  M     chrome/gpu/gpu_command_buffer_stub.cc
>>>>  M     chrome/gpu/gpu_thread.h
>>>>  M     chrome/gpu/gpu_thread.cc
>>>>  M     chrome/gpu/gpu_video_decoder.h
>>>>  M     chrome/gpu/gpu_video_decoder.cc
>>>>  M     chrome/gpu/gpu_video_service.h
>>>>  M     chrome/gpu/gpu_video_service.cc
>>>>  M     chrome/nacl/broker_thread.h
>>>>  M     chrome/nacl/broker_thread.cc
>>>>  M     chrome/nacl/nacl_thread.h
>>>>  M     chrome/nacl/nacl_thread.cc
>>>>  M     chrome/plugin/command_buffer_stub.h
>>>>  M     chrome/plugin/command_buffer_stub.cc
>>>>  M     chrome/plugin/npobject_proxy.h
>>>>  M     chrome/plugin/npobject_proxy.cc
>>>>  M     chrome/plugin/npobject_stub.h
>>>>  M     chrome/plugin/npobject_stub.cc
>>>>  M     chrome/plugin/plugin_channel.h
>>>>  M     chrome/plugin/plugin_channel.cc
>>>>  M     chrome/plugin/plugin_channel_base.h
>>>>  M     chrome/plugin/plugin_channel_base.cc
>>>>  M     chrome/plugin/plugin_thread.h
>>>>  M     chrome/plugin/plugin_thread.cc
>>>>  M     chrome/plugin/webplugin_delegate_stub.h
>>>>  M     chrome/plugin/webplugin_delegate_stub.cc
>>>>  M     chrome/ppapi_plugin/ppapi_thread.h
>>>>  M     chrome/ppapi_plugin/ppapi_thread.cc
>>>>  M     chrome/profile_import/profile_import_thread.h
>>>>  M     chrome/profile_import/profile_import_thread.cc
>>>>  M     chrome/renderer/command_buffer_proxy.h
>>>>  M     chrome/renderer/command_buffer_proxy.cc
>>>>  M     chrome/renderer/device_orientation_dispatcher.h
>>>>  M     chrome/renderer/devtools_agent.h
>>>>  M     chrome/renderer/devtools_client.h
>>>>  M     chrome/renderer/geolocation_dispatcher_old.h
>>>>  M     chrome/renderer/gpu_channel_host.h
>>>>  M     chrome/renderer/gpu_channel_host.cc
>>>>  M     chrome/renderer/gpu_video_decoder_host.h
>>>>  M     chrome/renderer/gpu_video_decoder_host.cc
>>>>  M     chrome/renderer/indexed_db_dispatcher.h
>>>>  M     chrome/renderer/mock_render_thread.h
>>>>  M     chrome/renderer/mock_render_thread.cc
>>>>  M     chrome/renderer/notification_provider.h
>>>>  M     chrome/renderer/plugin_channel_host.h
>>>>  M     chrome/renderer/plugin_channel_host.cc
>>>>  M     chrome/renderer/render_thread.h
>>>>  M     chrome/renderer/render_thread.cc
>>>>  M     chrome/renderer/render_view.h
>>>>  M     chrome/renderer/render_view.cc
>>>>  M     chrome/renderer/render_widget.h
>>>>  M     chrome/renderer/render_widget.cc
>>>>  M     chrome/renderer/renderer_main_unittest.cc
>>>>  M
>>>> chrome/renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc
>>>>  M     chrome/renderer/safe_browsing/render_view_fake_resources_test.h
>>>>  M     chrome/renderer/safe_browsing/render_view_fake_resources_test.cc
>>>>  M     chrome/renderer/speech_input_dispatcher.h
>>>>  M     chrome/renderer/webplugin_delegate_proxy.h
>>>>  M     chrome/renderer/webplugin_delegate_proxy.cc
>>>>  M     chrome/renderer/websharedworker_proxy.h
>>>>  M     chrome/renderer/websharedworker_proxy.cc
>>>>  M     chrome/renderer/webworker_proxy.h
>>>>  M     chrome/renderer/webworker_proxy.cc
>>>>  M     chrome/service/service_ipc_server.h
>>>>  M     chrome/service/service_ipc_server.cc
>>>>  M     chrome/service/service_utility_process_host.h
>>>>  M     chrome/service/service_utility_process_host.cc
>>>>  M     chrome/test/automation/automation_proxy.h
>>>>  M     chrome/test/automation/automation_proxy.cc
>>>>  M     chrome/test/automation/automation_proxy_uitest.h
>>>>  M     chrome/test/automation/automation_proxy_uitest.cc
>>>>  M     chrome/test/automation/tab_proxy.h
>>>>  M     chrome/test/automation/tab_proxy.cc
>>>>  M     chrome/utility/utility_thread.h
>>>>  M     chrome/utility/utility_thread.cc
>>>>  M     chrome/worker/websharedworker_stub.h
>>>>  M     chrome/worker/websharedworker_stub.cc
>>>>  M     chrome/worker/webworker_stub.h
>>>>  M     chrome/worker/webworker_stub.cc
>>>>  M     chrome/worker/worker_thread.h
>>>>  M     chrome/worker/worker_thread.cc
>>>>  M     chrome_frame/cfproxy.h
>>>>  M     chrome_frame/cfproxy_private.h
>>>>  M     chrome_frame/cfproxy_proxy.cc
>>>>  M     chrome_frame/cfproxy_test.cc
>>>>  M     chrome_frame/chrome_frame_delegate.h
>>>>  M     chrome_frame/chrome_frame_delegate.cc
>>>>  M     chrome_frame/external_tab.h
>>>>  M     chrome_frame/external_tab.cc
>>>>  M     chrome_frame/test/net/test_automation_provider.h
>>>>  M     chrome_frame/test/net/test_automation_provider.cc
>>>>  M     ipc/ipc_channel.h
>>>>  M     ipc/ipc_channel_posix_unittest.cc
>>>>  M     ipc/ipc_channel_proxy.h
>>>>  M     ipc/ipc_channel_proxy.cc
>>>>  M     ipc/ipc_fuzzing_tests.cc
>>>>  M     ipc/ipc_message_macros.h
>>>>  M     ipc/ipc_send_fds_test.cc
>>>>  M     ipc/ipc_sync_channel.h
>>>>  M     ipc/ipc_sync_channel.cc
>>>>  M     ipc/ipc_sync_channel_unittest.cc
>>>>  M     ipc/ipc_sync_message_unittest.cc
>>>>  M     ipc/ipc_tests.cc
>>>>  M     ipc/sync_socket_unittest.cc
>>>>  M     ppapi/proxy/dispatcher.h
>>>>  M     ppapi/proxy/dispatcher.cc
>>>>  M     ppapi/proxy/interface_proxy.h
>>>>  M     ppapi/proxy/plugin_dispatcher.h
>>>>  M     ppapi/proxy/plugin_dispatcher.cc
>>>>  M     ppapi/proxy/ppb_audio_config_proxy.h
>>>>  M     ppapi/proxy/ppb_audio_config_proxy.cc
>>>>  M     ppapi/proxy/ppb_audio_proxy.h
>>>>  M     ppapi/proxy/ppb_audio_proxy.cc
>>>>  M     ppapi/proxy/ppb_buffer_proxy.h
>>>>  M     ppapi/proxy/ppb_buffer_proxy.cc
>>>>  M     ppapi/proxy/ppb_char_set_proxy.h
>>>>  M     ppapi/proxy/ppb_char_set_proxy.cc
>>>>  M     ppapi/proxy/ppb_core_proxy.h
>>>>  M     ppapi/proxy/ppb_core_proxy.cc
>>>>  M     ppapi/proxy/ppb_cursor_control_proxy.h
>>>>  M     ppapi/proxy/ppb_cursor_control_proxy.cc
>>>>  M     ppapi/proxy/ppb_flash_proxy.h
>>>>  M     ppapi/proxy/ppb_flash_proxy.cc
>>>>  M     ppapi/proxy/ppb_font_proxy.h
>>>>  M     ppapi/proxy/ppb_font_proxy.cc
>>>>  M     ppapi/proxy/ppb_fullscreen_proxy.h
>>>>  M     ppapi/proxy/ppb_fullscreen_proxy.cc
>>>>  M     ppapi/proxy/ppb_graphics_2d_proxy.h
>>>>  M     ppapi/proxy/ppb_graphics_2d_proxy.cc
>>>>  M     ppapi/proxy/ppb_image_data_proxy.h
>>>>  M     ppapi/proxy/ppb_image_data_proxy.cc
>>>>  M     ppapi/proxy/ppb_instance_proxy.h
>>>>  M     ppapi/proxy/ppb_instance_proxy.cc
>>>>  M     ppapi/proxy/ppb_pdf_proxy.h
>>>>  M     ppapi/proxy/ppb_pdf_proxy.cc
>>>>  M     ppapi/proxy/ppb_testing_proxy.h
>>>>  M     ppapi/proxy/ppb_testing_proxy.cc
>>>>  M     ppapi/proxy/ppb_url_loader_proxy.h
>>>>  M     ppapi/proxy/ppb_url_loader_proxy.cc
>>>>  M     ppapi/proxy/ppb_url_request_info_proxy.h
>>>>  M     ppapi/proxy/ppb_url_request_info_proxy.cc
>>>>  M     ppapi/proxy/ppb_url_response_info_proxy.h
>>>>  M     ppapi/proxy/ppb_url_response_info_proxy.cc
>>>>  M     ppapi/proxy/ppb_var_deprecated_proxy.h
>>>>  M     ppapi/proxy/ppb_var_deprecated_proxy.cc
>>>>  M     ppapi/proxy/ppp_class_proxy.h
>>>>  M     ppapi/proxy/ppp_class_proxy.cc
>>>>  M     ppapi/proxy/ppp_instance_proxy.h
>>>>  M     ppapi/proxy/ppp_instance_proxy.cc
>>>>
>>>>
>>>>
>>>
>>
>

Powered by Google App Engine
This is Rietveld 408576698