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

Issue 307653003: Introduce IPC::Channel::Create*() to ensure it being heap-allocated. (Closed)

Created:
6 years, 6 months ago by Hajime Morrita
Modified:
6 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Introduce IPC::Channel::Create*() to ensure it being heap-allocated. This change introduces IPC::Channel::Create*() API to turn IPC::Channel into a heap allocated object. This will allow us to make Channel a polymorphic class. This change also tries to hide Channel::Mode from public API so that we can simplify channel creation code paths cleaner in following changes. ChannelProxy has to follow same pattern to finish this cleanup. Such changes will follow. TEST=none BUG=377980 R=darin@chromium.org,cpu@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273575 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273713

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : Fixing mac build failure #

Patch Set 5 : Fixing windows build, landing again. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -142 lines) Patch
M chrome/browser/pepper_flash_settings_manager.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/utility/importer/firefox_importer_unittest_utils_mac.cc View 1 2 3 2 chunks +5 lines, -6 lines 0 comments Download
M cloud_print/service/win/service_listener.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M cloud_print/service/win/setup_listener.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M components/nacl/broker/nacl_broker_listener.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M components/nacl/loader/nacl_ipc_adapter.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/plugin_data_remover_impl.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/plugin_service_impl_browsertest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/common/child_process_host_impl.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/render_thread_impl_browsertest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M ipc/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M ipc/ipc.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M ipc/ipc_channel.h View 1 2 3 chunks +43 lines, -14 lines 0 comments Download
A ipc/ipc_channel_common.cc View 1 2 1 chunk +55 lines, -0 lines 0 comments Download
M ipc/ipc_channel_posix_unittest.cc View 13 chunks +84 lines, -67 lines 0 comments Download
M ipc/ipc_channel_proxy.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_channel_proxy_unittest.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M ipc/ipc_channel_unittest.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M ipc/ipc_fuzzing_tests.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M ipc/ipc_perftests.cc View 1 chunk +4 lines, -5 lines 0 comments Download
M ipc/ipc_send_fds_test.cc View 1 2 2 chunks +6 lines, -10 lines 0 comments Download
M ipc/ipc_test_base.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M ipc/sync_socket_unittest.cc View 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Hajime Morrita
PTAL?
6 years, 6 months ago (2014-05-28 17:45:42 UTC) #1
darin (slow to review)
LGTM, just nits: https://codereview.chromium.org/307653003/diff/1/ipc/ipc_channel.h File ipc/ipc_channel.h (right): https://codereview.chromium.org/307653003/diff/1/ipc/ipc_channel.h#newcode124 ipc/ipc_channel.h:124: // FIXME(morrita): Replace CreateByModeForProxy() with one ...
6 years, 6 months ago (2014-05-28 19:47:14 UTC) #2
Hajime Morrita
The CQ bit was checked by morrita@chromium.org
6 years, 6 months ago (2014-05-28 21:34:40 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/morrita@chromium.org/307653003/20001
6 years, 6 months ago (2014-05-28 21:34:58 UTC) #4
Hajime Morrita
The CQ bit was unchecked by morrita@chromium.org
6 years, 6 months ago (2014-05-28 21:36:06 UTC) #5
Hajime Morrita
The CQ bit was checked by morrita@chromium.org
6 years, 6 months ago (2014-05-28 22:32:08 UTC) #6
Hajime Morrita
Thanks for review! https://codereview.chromium.org/307653003/diff/1/ipc/ipc_channel.h File ipc/ipc_channel.h (right): https://codereview.chromium.org/307653003/diff/1/ipc/ipc_channel.h#newcode124 ipc/ipc_channel.h:124: // FIXME(morrita): Replace CreateByModeForProxy() with one ...
6 years, 6 months ago (2014-05-28 22:32:23 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/morrita@chromium.org/307653003/40001
6 years, 6 months ago (2014-05-28 22:32:26 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_compile_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-05-29 09:18:54 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-29 10:58:41 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_compile_dbg/builds/27386)
6 years, 6 months ago (2014-05-29 10:58:41 UTC) #11
Hajime Morrita
The CQ bit was checked by morrita@chromium.org
6 years, 6 months ago (2014-05-29 16:01:17 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/morrita@chromium.org/307653003/60001
6 years, 6 months ago (2014-05-29 16:03:41 UTC) #13
cpu_(ooo_6.6-7.5)
lgtm
6 years, 6 months ago (2014-05-29 17:06:11 UTC) #14
commit-bot: I haz the power
Change committed as 273575
6 years, 6 months ago (2014-05-29 20:30:20 UTC) #15
Hajime Morrita
The CQ bit was checked by morrita@chromium.org
6 years, 6 months ago (2014-05-29 21:16:41 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/307653003/80001
6 years, 6 months ago (2014-05-29 21:21:47 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-05-30 02:18:56 UTC) #18
commit-bot: I haz the power
6 years, 6 months ago (2014-05-30 03:59:07 UTC) #19
Message was sent while issue was closed.
Change committed as 273713

Powered by Google App Engine
This is Rietveld 408576698