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

Issue 6810013: Add sync context dispatch restriction (Closed)

Created:
9 years, 8 months ago by piman
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Add sync context dispatch restriction. This adds a way to restrict on a per-channel basis that incoming messages may only be dispatched when that particular channel is sending a sync message (or in a message loop). It does so to the PPAPI channels, which may not introduce a sync dependency circle. BUG=chromiumos:13821 TEST=news.google.com with Pepper Flash (see bug) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=80892

Patch Set 1 : . #

Total comments: 3

Patch Set 2 : fix comment #

Patch Set 3 : Add test #

Total comments: 1

Patch Set 4 : fix flaky test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -12 lines) Patch
M content/renderer/pepper_plugin_delegate_impl.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ipc/ipc_sync_channel.h View 1 3 chunks +15 lines, -0 lines 0 comments Download
M ipc/ipc_sync_channel.cc View 1 2 7 chunks +25 lines, -11 lines 0 comments Download
M ipc/ipc_sync_channel_unittest.cc View 1 2 3 2 chunks +150 lines, -0 lines 0 comments Download
M ipc/ipc_sync_message_unittest.h View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
piman
9 years, 8 months ago (2011-04-07 21:10:02 UTC) #1
jam
http://codereview.chromium.org/6810013/diff/2001/ipc/ipc_sync_channel.cc File ipc/ipc_sync_channel.cc (right): http://codereview.chromium.org/6810013/diff/2001/ipc/ipc_sync_channel.cc#newcode99 ipc/ipc_sync_channel.cc:99: message_queue_ = delayed_queue; i don't see what this line ...
9 years, 8 months ago (2011-04-07 21:25:18 UTC) #2
jam
ah nm, I missed the outer loop, lgtm with the nit
9 years, 8 months ago (2011-04-07 21:27:07 UTC) #3
jam
On 2011/04/07 21:27:07, John Abd-El-Malek wrote: > ah nm, I missed the outer loop, lgtm ...
9 years, 8 months ago (2011-04-07 21:27:47 UTC) #4
piman
PTAL, I added a test. Note, I also added a DispatchMessage() at the beginning of ...
9 years, 8 months ago (2011-04-08 00:27:53 UTC) #5
jam
On 2011/04/08 00:27:53, piman wrote: > PTAL, I added a test. Note, I also added ...
9 years, 8 months ago (2011-04-08 01:06:54 UTC) #6
piman
On Thu, Apr 7, 2011 at 6:06 PM, <jam@chromium.org> wrote: > On 2011/04/08 00:27:53, piman ...
9 years, 8 months ago (2011-04-08 01:15:06 UTC) #7
piman
http://codereview.chromium.org/6810013/diff/1004/ipc/ipc_sync_channel_unittest.cc File ipc/ipc_sync_channel_unittest.cc (right): http://codereview.chromium.org/6810013/diff/1004/ipc/ipc_sync_channel_unittest.cc#newcode1255 ipc/ipc_sync_channel_unittest.cc:1255: Send(new SyncChannelTestMsg_PostPing(2)); This is flaky... even though I post ...
9 years, 8 months ago (2011-04-08 02:07:03 UTC) #8
piman
ptal
9 years, 8 months ago (2011-04-08 03:08:43 UTC) #9
jam
9 years, 8 months ago (2011-04-08 03:13:35 UTC) #10
lgtm

Powered by Google App Engine
This is Rietveld 408576698