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

Issue 2316963005: Reworks Channel pausing behavior (Closed)

Created:
4 years, 3 months ago by Ken Rockot(use gerrit already)
Modified:
4 years, 3 months ago
Reviewers:
jam
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), darin-cc_chromium.org, jam, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reworks Channel pausing behavior It turns out creating a Channel paused is not good enough; we actually need to be able to send some messages, then pause, send more messages, unpause, send even more messages, and then flush. This is because of subtleties in how RPHI handles queuing. It queues messages before the Channel is created, then there is a brief period between Channel creation and process launch where messages aren't queued but are sent immediately (but previously queued messages remain in queue), and then new messages are queued again during process launch, and finally queueing is turned off after process launch. This changes Channel to have an explicit Pause() API and gets rid of the recently added ConnectPaused(). BUG=612500 Committed: https://crrev.com/1018875b737323db9ba00d76705ac70005f019ac Cr-Commit-Position: refs/heads/master@{#417344}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -84 lines) Patch
M ipc/ipc_channel.h View 1 chunk +9 lines, -15 lines 0 comments Download
M ipc/ipc_channel_common.cc View 1 chunk +1 line, -4 lines 0 comments Download
M ipc/ipc_channel_mojo.h View 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_channel_mojo.cc View 3 chunks +6 lines, -15 lines 0 comments Download
M ipc/ipc_channel_mojo_unittest.cc View 7 chunks +25 lines, -16 lines 0 comments Download
M ipc/ipc_channel_proxy.h View 2 chunks +13 lines, -11 lines 0 comments Download
M ipc/ipc_channel_proxy.cc View 5 chunks +17 lines, -9 lines 0 comments Download
M ipc/ipc_mojo_bootstrap.h View 1 chunk +4 lines, -1 line 0 comments Download
M ipc/ipc_mojo_bootstrap.cc View 4 chunks +16 lines, -9 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 +2 lines, -2 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 12 (7 generated)
Ken Rockot(use gerrit already)
Apologies for the churn. Some browser tests revealed that I misunderstood RPHI's queueing behavior and ...
4 years, 3 months ago (2016-09-07 22:44:01 UTC) #4
jam
lgtm
4 years, 3 months ago (2016-09-08 18:10:01 UTC) #7
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/2316963005/1
4 years, 3 months ago (2016-09-08 18:18:45 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-08 18:25:48 UTC) #10
commit-bot: I haz the power
4 years, 3 months ago (2016-09-08 18:30:15 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/1018875b737323db9ba00d76705ac70005f019ac
Cr-Commit-Position: refs/heads/master@{#417344}

Powered by Google App Engine
This is Rietveld 408576698