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

Issue 324143002: Decouple IPC::MessageFilter from IPC::Channel (Closed)

Created:
6 years, 6 months ago by Hajime Morrita
Modified:
6 years, 6 months ago
CC:
chromium-reviews, tzik, tburkard+watch_chromium.org, nasko+codewatch_chromium.org, ericu+idb_chromium.org, sievers+watch_chromium.org, dgrogan, jdduke+watch_chromium.org, miu+watch_chromium.org, jsbell+serviceworker_chromium.org, cbentzel+watch_chromium.org, alecflett, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, michaeln, creis+watch_chromium.org, nhiroki, gavinp+prer_chromium.org, dsinclair+watch_chromium.org, piman+watch_chromium.org, jsbell+idb_chromium.org, alecflett+watch_chromium.org, davidben+watch_chromium.org, feature-media-reviews_chromium.org, serviceworker-reviews, mcasas+watch_chromium.org, dominich+watch_chromium.org, kinuko+serviceworker, cmumford, horo+watch_chromium.org, danakj+watch_chromium.org, wjia+watch_chromium.org, kinuko+fileapi
Visibility:
Public.

Description

Decouple IPC::MessageFilter from IPC::Channel This change gets rid of Channel dependency from MessageFilter so that it depends only on IPC::Sender. TEST=none BUG=377980 R=jam@chromium.org, darin@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276939

Patch Set 1 #

Patch Set 2 : Fixing compilation errors #

Total comments: 1

Patch Set 3 : Renamed back from OnSender* to OnChannel* #

Patch Set 4 : Fixing windows build failure #

Patch Set 5 : Pass peer_pid as before #

Patch Set 6 : Landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -197 lines) Patch
M chrome/renderer/media/cast_ipc_dispatcher.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/renderer/media/cast_ipc_dispatcher.cc View 1 2 3 4 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/renderer/media/webrtc_logging_message_filter.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/media/webrtc_logging_message_filter.cc View 1 2 3 chunks +8 lines, -8 lines 0 comments Download
M components/nacl/renderer/pnacl_translation_resource_host.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M components/nacl/renderer/pnacl_translation_resource_host.cc View 1 2 3 chunks +11 lines, -11 lines 0 comments Download
M components/tracing/child_trace_message_filter.h View 2 chunks +2 lines, -2 lines 0 comments Download
M components/tracing/child_trace_message_filter.cc View 5 chunks +11 lines, -11 lines 0 comments Download
M content/browser/dom_storage/dom_storage_message_filter.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/dom_storage/dom_storage_message_filter.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/audio_input_renderer_host.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/audio_renderer_host.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/media_stream_dispatcher_host.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/video_capture_host.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/video_capture_host_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/p2p/socket_dispatcher_host.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M content/child/child_histogram_message_filter.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/child/child_histogram_message_filter.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M content/child/child_thread.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/font_cache_dispatcher_win.h View 1 2 3 3 chunks +2 lines, -6 lines 0 comments Download
M content/common/font_cache_dispatcher_win.cc View 1 2 3 3 chunks +6 lines, -7 lines 0 comments Download
M content/common/gpu/gpu_channel.cc View 3 chunks +9 lines, -9 lines 0 comments Download
M content/common/gpu/media/gpu_video_decode_accelerator.cc View 1 2 3 4 3 chunks +8 lines, -8 lines 0 comments Download
M content/plugin/plugin_channel.cc View 1 3 chunks +5 lines, -5 lines 0 comments Download
M content/public/browser/browser_message_filter.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/browser/browser_message_filter.cc View 1 2 3 4 5 chunks +8 lines, -8 lines 0 comments Download
M content/renderer/input/input_event_filter.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/input/input_event_filter.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/media/audio_input_message_filter.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/media/audio_input_message_filter.cc View 1 2 5 chunks +8 lines, -8 lines 0 comments Download
M content/renderer/media/audio_message_filter.h View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/media/audio_message_filter.cc View 1 2 4 chunks +6 lines, -6 lines 0 comments Download
M content/renderer/media/midi_message_filter.h View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/media/midi_message_filter.cc View 1 2 4 chunks +6 lines, -6 lines 0 comments Download
M content/renderer/media/video_capture_message_filter.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/media/video_capture_message_filter.cc View 1 2 5 chunks +9 lines, -9 lines 0 comments Download
M content/renderer/p2p/socket_dispatcher.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/p2p/socket_dispatcher.cc View 1 2 4 chunks +9 lines, -9 lines 0 comments Download
M content/renderer/pepper/pepper_hung_plugin_filter.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/pepper/pepper_hung_plugin_filter.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_channel_proxy_unittest.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ipc/ipc_sync_channel_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ipc/ipc_sync_message_filter.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M ipc/ipc_sync_message_filter.cc View 1 2 3 chunks +7 lines, -7 lines 0 comments Download
M ipc/message_filter.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M ipc/message_filter.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/plugin_message_filter.h View 2 chunks +3 lines, -3 lines 0 comments Download
M ppapi/proxy/plugin_message_filter.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M win8/viewer/metro_viewer_process_host.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
Hajime Morrita
6 years, 6 months ago (2014-06-10 17:45:55 UTC) #1
Hajime Morrita
Most of the changes are superficial. Changes that matter are: - MessageFilter - BrowserMessageFilter - ...
6 years, 6 months ago (2014-06-10 17:59:26 UTC) #2
darin (slow to review)
https://codereview.chromium.org/324143002/diff/20001/ipc/message_filter.h File ipc/message_filter.h (right): https://codereview.chromium.org/324143002/diff/20001/ipc/message_filter.h#newcode37 ipc/message_filter.h:37: virtual void OnSenderConnected(); I think it is a bit ...
6 years, 6 months ago (2014-06-10 19:39:15 UTC) #3
gmorrita
On 2014/06/10 19:39:15, darin wrote: > https://codereview.chromium.org/324143002/diff/20001/ipc/message_filter.h > File ipc/message_filter.h (right): > > https://codereview.chromium.org/324143002/diff/20001/ipc/message_filter.h#newcode37 > ...
6 years, 6 months ago (2014-06-10 19:50:23 UTC) #4
jam
I'm not sure I understand the purpose of the BrowserMessageFilterPeer class? It appears that you're ...
6 years, 6 months ago (2014-06-10 21:11:48 UTC) #5
Hajime Morrita
On 2014/06/10 21:11:48, jam wrote: > I'm not sure I understand the purpose of the ...
6 years, 6 months ago (2014-06-10 21:39:58 UTC) #6
Hajime Morrita
Anyway, updated the patch with the rename Darin mentioned.
6 years, 6 months ago (2014-06-10 22:29:34 UTC) #7
jam
On 2014/06/10 21:39:58, morrita wrote: > On 2014/06/10 21:11:48, jam wrote: > > > I'm ...
6 years, 6 months ago (2014-06-12 15:34:52 UTC) #8
gmorrita
On 2014/06/12 15:34:52, jam wrote: > > I don't understand the reasoning for this, since ...
6 years, 6 months ago (2014-06-12 15:59:03 UTC) #9
Hajime Morrita
jam: PTAL? Now peer_pid is back and this change becomes just about replacing Channel with ...
6 years, 6 months ago (2014-06-12 18:48:42 UTC) #10
darin (slow to review)
LGTM
6 years, 6 months ago (2014-06-12 22:32:31 UTC) #11
gmorrita
Thanks you!
6 years, 6 months ago (2014-06-12 22:50:18 UTC) #12
Hajime Morrita
The CQ bit was checked by morrita@chromium.org
6 years, 6 months ago (2014-06-12 22:51:23 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/morrita@chromium.org/324143002/100001
6 years, 6 months ago (2014-06-12 22:54:29 UTC) #14
jam
lgtm
6 years, 6 months ago (2014-06-13 05:20:42 UTC) #15
commit-bot: I haz the power
6 years, 6 months ago (2014-06-13 06:07:20 UTC) #16
Message was sent while issue was closed.
Change committed as 276939

Powered by Google App Engine
This is Rietveld 408576698