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

Issue 310853003: Add IPC::ChannelProxy::Create() and IPC::SyncChannel::Create() (Closed)

Created:
6 years, 6 months ago by Hajime Morrita
Modified:
6 years, 6 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, creis+watch_chromium.org, kalyank, chromoting-reviews_chromium.org, tfarina, nasko+codewatch_chromium.org, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, chromium-apps-reviews_chromium.org, danakj+watch_chromium.org
Visibility:
Public.

Description

Add IPC::ChannelProxy::Create() and IPC::SyncChannel::Create() This change replaces constructors with Create() methods of ChannelProxy and SyncChannel. This open the possibility to introduce polymorphism to these classes. This is a revision of r274310 (https://codereview.chromium.org/301973003/) in which I added bunch of Create*() method variants. The chagne was reverted. This change no longer does it and just keeps using Channel::Mode to specify the channel type. TEST=none BUG=377980 R=darin@chromium.org,jam@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275140

Patch Set 1 #

Total comments: 7

Patch Set 2 : Fixing win8 build #

Patch Set 3 : #

Patch Set 4 : Remove one of ChannelProxy::Create() #

Patch Set 5 : Landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -198 lines) Patch
M apps/app_shim/app_shim_host_mac.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M apps/app_shim/app_shim_host_manager_browsertest_mac.mm View 1 chunk +4 lines, -2 lines 0 comments Download
M apps/app_shim/chrome_main_app_mode_mac.mm View 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc View 3 chunks +13 lines, -12 lines 0 comments Download
M chrome/browser/service_process/service_process_control.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/service_process/service_process_control.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/service/service_ipc_server.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/nacl/browser/nacl_process_host.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M components/nacl/loader/nacl_listener.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/nacl/loader/nacl_trusted_listener.cc View 1 chunk +6 lines, -3 lines 0 comments Download
M components/nacl/renderer/manifest_service_channel.cc View 1 chunk +6 lines, -3 lines 0 comments Download
M components/nacl/renderer/trusted_plugin_channel.cc View 1 chunk +6 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 1 chunk +5 lines, -6 lines 0 comments Download
M content/child/child_thread.cc View 1 chunk +7 lines, -7 lines 0 comments Download
M content/child/npapi/np_channel_base.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/gpu/client/gpu_channel_host.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/gpu/gpu_channel.cc View 1 chunk +6 lines, -7 lines 0 comments Download
M ipc/ipc_channel_proxy.h View 1 2 3 2 chunks +8 lines, -4 lines 0 comments Download
M ipc/ipc_channel_proxy.cc View 1 2 3 2 chunks +14 lines, -7 lines 0 comments Download
M ipc/ipc_sync_channel.h View 2 chunks +16 lines, -9 lines 0 comments Download
M ipc/ipc_sync_channel.cc View 1 chunk +16 lines, -8 lines 0 comments Download
M ipc/ipc_sync_channel_unittest.cc View 1 2 6 chunks +35 lines, -33 lines 0 comments Download
M ipc/ipc_test_base.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ppapi/nacl_irt/manifest_service.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ppapi/nacl_irt/ppapi_dispatcher.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ppapi/proxy/proxy_channel.cc View 1 2 3 4 1 chunk +5 lines, -4 lines 0 comments Download
M remoting/host/desktop_process.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M remoting/host/desktop_process_unittest.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M remoting/host/desktop_session_proxy.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M remoting/host/ipc_desktop_environment_unittest.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M remoting/host/ipc_util_posix.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M remoting/host/ipc_util_win.cc View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
M remoting/host/remoting_me2me_host.cc View 1 chunk +9 lines, -10 lines 0 comments Download
M remoting/host/win/worker_process_launcher_unittest.cc View 1 2 3 4 2 chunks +6 lines, -10 lines 0 comments Download
M remoting/host/win/wts_session_process_delegate.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M tools/ipc_fuzzer/replay/replay_process.cc View 1 chunk +4 lines, -5 lines 0 comments Download
M win8/metro_driver/chrome_app_view_ash.cc View 1 1 chunk +6 lines, -5 lines 0 comments Download
M win8/viewer/metro_viewer_process_host.cc View 1 chunk +4 lines, -5 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Hajime Morrita
6 years, 6 months ago (2014-06-03 16:36:34 UTC) #1
jam
https://codereview.chromium.org/310853003/diff/1/content/child/npapi/np_channel_base.cc File content/child/npapi/np_channel_base.cc (right): https://codereview.chromium.org/310853003/diff/1/content/child/npapi/np_channel_base.cc#newcode181 content/child/npapi/np_channel_base.cc:181: channel_ = IPC::SyncChannel::Create(this, ipc_message_loop, shutdown_event); why not use the ...
6 years, 6 months ago (2014-06-03 17:30:40 UTC) #2
jam
https://codereview.chromium.org/310853003/diff/1/content/child/npapi/np_channel_base.cc File content/child/npapi/np_channel_base.cc (right): https://codereview.chromium.org/310853003/diff/1/content/child/npapi/np_channel_base.cc#newcode181 content/child/npapi/np_channel_base.cc:181: channel_ = IPC::SyncChannel::Create(this, ipc_message_loop, shutdown_event); why not use the ...
6 years, 6 months ago (2014-06-03 17:30:40 UTC) #3
Hajime Morrita
PTAL? https://codereview.chromium.org/310853003/diff/1/content/child/npapi/np_channel_base.cc File content/child/npapi/np_channel_base.cc (right): https://codereview.chromium.org/310853003/diff/1/content/child/npapi/np_channel_base.cc#newcode181 content/child/npapi/np_channel_base.cc:181: channel_ = IPC::SyncChannel::Create(this, ipc_message_loop, shutdown_event); On 2014/06/03 17:30:41, ...
6 years, 6 months ago (2014-06-03 18:01:58 UTC) #4
jam
https://codereview.chromium.org/310853003/diff/1/ipc/ipc_channel_proxy.h File ipc/ipc_channel_proxy.h (right): https://codereview.chromium.org/310853003/diff/1/ipc/ipc_channel_proxy.h#newcode73 ipc/ipc_channel_proxy.h:73: // This Create() does not create underlying channel and ...
6 years, 6 months ago (2014-06-03 20:37:31 UTC) #5
gmorrita
On 2014/06/03 20:37:31, jam wrote: > ah you're right, what about the ChannelProxy::Create though? SyncChannel ...
6 years, 6 months ago (2014-06-03 20:50:54 UTC) #6
jam
lgtm
6 years, 6 months ago (2014-06-03 21:49:15 UTC) #7
Hajime Morrita
Thank you! Darin: Could you rubberstamp this?
6 years, 6 months ago (2014-06-03 22:00:19 UTC) #8
darin (slow to review)
LGTM
6 years, 6 months ago (2014-06-03 22:44:50 UTC) #9
Hajime Morrita
The CQ bit was checked by morrita@chromium.org
6 years, 6 months ago (2014-06-03 22:45:27 UTC) #10
Hajime Morrita
Thank you!
6 years, 6 months ago (2014-06-03 22:46:16 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/morrita@chromium.org/310853003/50001
6 years, 6 months ago (2014-06-03 22:46:46 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-04 03:51:42 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-04 05:49:58 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/16893)
6 years, 6 months ago (2014-06-04 05:49:59 UTC) #15
Hajime Morrita
The CQ bit was checked by morrita@chromium.org
6 years, 6 months ago (2014-06-04 20:11:43 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/morrita@chromium.org/310853003/70001
6 years, 6 months ago (2014-06-04 20:13:05 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-05 00:23:31 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-05 00:37:23 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_chromium_gn_compile_rel/builds/10694)
6 years, 6 months ago (2014-06-05 00:37:24 UTC) #20
Hajime Morrita
The CQ bit was checked by morrita@chromium.org
6 years, 6 months ago (2014-06-05 15:39:28 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/morrita@chromium.org/310853003/70001
6 years, 6 months ago (2014-06-05 15:41:01 UTC) #22
commit-bot: I haz the power
6 years, 6 months ago (2014-06-05 16:15:41 UTC) #23
Message was sent while issue was closed.
Change committed as 275140

Powered by Google App Engine
This is Rietveld 408576698