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

Issue 2680973006: Mojo EDK: Add safe process connection API (Closed)

Created:
3 years, 10 months ago by Ken Rockot(use gerrit already)
Modified:
3 years, 10 months ago
Reviewers:
Sam McNally, jam, joedow
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, chromoting-reviews_chromium.org, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, davemoore+watch_chromium.org, elijahtaylor+arcwatch_chromium.org, hidehiko+watch_chromium.org, jam, lhchavez+watch_chromium.org, mac-reviews_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, oshima+watch_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, tfarina, viettrungluu+watch_chromium.org, yusukes+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mojo EDK: Add safe process connection API Replaces ad hoc ChildProcessLaunched etc functions and "child tokens" with a scoping PendingProcessConnection object. This encapsulates the concept of a process to which we intend to connect (e.g. so we can start vending message pipe handles for it) but which may not yet be reachable, and it ensures that any associated resources are reliably cleaned up in the event that we never actually connect to the process. This API also begins an intentional departure from the now-inaccurate naming conventions of "parent" and "child" used at the EDK layer to refer to some relative process relationships. BUG=682794 Review-Url: https://codereview.chromium.org/2680973006 Cr-Commit-Position: refs/heads/master@{#449457} Committed: https://chromium.googlesource.com/chromium/src/+/1039b82bdad1ce37bd6716636e918f475ed50d13

Patch Set 1 #

Total comments: 6

Patch Set 2 : . #

Patch Set 3 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+365 lines, -294 lines) Patch
M chrome/browser/chromeos/arc/video/gpu_arc_video_service_host.cc View 3 chunks +5 lines, -11 lines 0 comments Download
M chrome/service/service_utility_process_host.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/service/service_utility_process_host.cc View 1 3 chunks +4 lines, -9 lines 0 comments Download
M chrome/test/base/mojo_test_connector.cc View 1 5 chunks +6 lines, -7 lines 0 comments Download
M chrome/utility/importer/firefox_importer_unittest_utils_mac.cc View 2 chunks +8 lines, -15 lines 0 comments Download
M components/arc/arc_session.cc View 1 3 chunks +7 lines, -5 lines 0 comments Download
M components/nacl/broker/nacl_broker_listener.cc View 4 chunks +9 lines, -11 lines 0 comments Download
M content/browser/browser_child_process_host_impl.h View 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/browser_child_process_host_impl.cc View 1 3 chunks +8 lines, -6 lines 0 comments Download
M content/browser/child_process_launcher.h View 3 chunks +3 lines, -4 lines 0 comments Download
M content/browser/child_process_launcher.cc View 1 2 3 chunks +12 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 4 chunks +5 lines, -6 lines 0 comments Download
M content/common/child_process_host_impl.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/common/child_process_host_impl.cc View 1 1 chunk +4 lines, -7 lines 0 comments Download
M content/common/service_manager/child_connection.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M content/common/service_manager/child_connection.cc View 1 2 chunks +4 lines, -16 lines 0 comments Download
M content/public/common/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/child_process_host.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/render_thread_impl_browsertest.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M mojo/edk/embedder/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
M mojo/edk/embedder/embedder.h View 4 chunks +9 lines, -42 lines 0 comments Download
M mojo/edk/embedder/embedder.cc View 2 chunks +0 lines, -26 lines 0 comments Download
M mojo/edk/embedder/embedder_unittest.cc View 5 chunks +18 lines, -19 lines 0 comments Download
M mojo/edk/embedder/named_platform_channel_pair.h View 1 chunk +1 line, -1 line 0 comments Download
A mojo/edk/embedder/pending_process_connection.h View 1 1 chunk +123 lines, -0 lines 0 comments Download
A mojo/edk/embedder/pending_process_connection.cc View 1 1 chunk +50 lines, -0 lines 0 comments Download
M mojo/edk/test/multiprocess_test_helper.cc View 4 chunks +7 lines, -9 lines 0 comments Download
M remoting/host/win/unprivileged_process_delegate.cc View 3 chunks +5 lines, -9 lines 0 comments Download
M remoting/host/win/wts_session_process_delegate.cc View 1 6 chunks +11 lines, -16 lines 0 comments Download
M services/service_manager/README.md View 3 chunks +9 lines, -17 lines 0 comments Download
M services/service_manager/runner/common/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M services/service_manager/runner/common/client_util.h View 1 1 chunk +12 lines, -7 lines 0 comments Download
M services/service_manager/runner/common/client_util.cc View 1 1 chunk +6 lines, -7 lines 0 comments Download
M services/service_manager/runner/host/service_process_launcher.h View 2 chunks +2 lines, -1 line 0 comments Download
M services/service_manager/runner/host/service_process_launcher.cc View 1 3 chunks +4 lines, -8 lines 0 comments Download
M services/service_manager/tests/service_manager/service_manager_unittest.cc View 1 3 chunks +6 lines, -6 lines 0 comments Download
M services/service_manager/tests/util.cc View 2 chunks +6 lines, -12 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 71 (59 generated)
Ken Rockot(use gerrit already)
Sam PTAL
3 years, 10 months ago (2017-02-08 23:19:56 UTC) #5
Ken Rockot(use gerrit already)
On 2017/02/08 at 23:19:56, Ken Rockot wrote: > Sam PTAL (specifically at //mojo and the ...
3 years, 10 months ago (2017-02-08 23:24:34 UTC) #6
Sam McNally
lgtm https://codereview.chromium.org/2680973006/diff/1/content/browser/child_process_launcher.cc File content/browser/child_process_launcher.cc (right): https://codereview.chromium.org/2680973006/diff/1/content/browser/child_process_launcher.cc#newcode89 content/browser/child_process_launcher.cc:89: pending_connection_.reset(); Can we clear this unconditionally? https://codereview.chromium.org/2680973006/diff/1/mojo/edk/embedder/pending_process_connection.h File ...
3 years, 10 months ago (2017-02-09 05:38:47 UTC) #19
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2680973006/diff/1/content/browser/child_process_launcher.cc File content/browser/child_process_launcher.cc (right): https://codereview.chromium.org/2680973006/diff/1/content/browser/child_process_launcher.cc#newcode89 content/browser/child_process_launcher.cc:89: pending_connection_.reset(); On 2017/02/09 at 05:38:47, Sam McNally wrote: > ...
3 years, 10 months ago (2017-02-09 06:01:58 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2680973006/100001
3 years, 10 months ago (2017-02-09 06:49:20 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/360325)
3 years, 10 months ago (2017-02-09 06:57:12 UTC) #28
Ken Rockot(use gerrit already)
+jam for content and chrome
3 years, 10 months ago (2017-02-09 07:08:00 UTC) #31
Ken Rockot(use gerrit already)
+jam for content and chrome
3 years, 10 months ago (2017-02-09 07:08:00 UTC) #32
jam
lgtm
3 years, 10 months ago (2017-02-09 17:22:55 UTC) #59
joedow
remoting lgtm
3 years, 10 months ago (2017-02-09 20:38:30 UTC) #61
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2680973006/220001
3 years, 10 months ago (2017-02-09 21:52:46 UTC) #67
commit-bot: I haz the power
3 years, 10 months ago (2017-02-09 23:20:33 UTC) #71
Message was sent while issue was closed.
Committed patchset #3 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/1039b82bdad1ce37bd6716636e91...

Powered by Google App Engine
This is Rietveld 408576698