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

Issue 149403005: Pepper: Make StartSelLdr asynchronous. (Closed)

Created:
6 years, 10 months ago by teravest
Modified:
6 years, 10 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, tzik, raymes+watch_chromium.org, teravest+watch_chromium.org, yzshen+watch_chromium.org, nfullagar1, piman+watch_chromium.org, noelallen1, binji, ihf+watch_chromium.org, Mark Seaborn
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Pepper: Make StartSelLdr asynchronous. Changing the trusted plugin to use Chromium IPC instead of SRPC requires that we create another channel between the renderer and plugin for communicating the existing SRPC messages. This channel will be created in response to the StartSelLdr request. Since we need that channel to be available immediately, StartSelLdr should not finish until the created channel is available for use. This requires that we make this operation asynchronous. SyncChannel creation is asynchronous because we must wait for the channel to be connected before attempting to use it for Send(). As part of connection, OnChannelConnected must be called on the thread that created the SyncChannel. In local testing, calling Send() before the channel had a chance to connect led to deadlock. BUG=333950 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250461

Patch Set 1 #

Total comments: 2

Patch Set 2 : CompletionCallback cleanup in service_runtime #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -111 lines) Patch
M components/nacl/renderer/ppb_nacl_private_impl.cc View 4 chunks +32 lines, -16 lines 0 comments Download
M ppapi/api/private/ppb_nacl_private.idl View 1 chunk +11 lines, -10 lines 0 comments Download
M ppapi/c/private/ppb_nacl_private.h View 2 chunks +12 lines, -11 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/nacl_entry_points.h View 2 chunks +3 lines, -1 line 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.h View 1 chunk +11 lines, -2 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.cc View 6 chunks +30 lines, -16 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/sel_ldr_launcher_chrome.h View 2 chunks +5 lines, -2 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/sel_ldr_launcher_chrome.cc View 3 chunks +19 lines, -25 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/service_runtime.h View 1 4 chunks +9 lines, -5 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/service_runtime.cc View 1 4 chunks +34 lines, -20 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
teravest
6 years, 10 months ago (2014-02-10 21:24:54 UTC) #1
Mark Seaborn
On 10 February 2014 13:24, <teravest@chromium.org> wrote: > Reviewers: dmichael, > > Description: > Pepper: ...
6 years, 10 months ago (2014-02-10 21:59:43 UTC) #2
dmichael (off chromium)
lgtm Can you edit the commit description to make it more clear why you need ...
6 years, 10 months ago (2014-02-10 23:31:16 UTC) #3
teravest
On Mon, Feb 10, 2014 at 4:31 PM, <dmichael@chromium.org> wrote: > lgtm > > Can ...
6 years, 10 months ago (2014-02-11 16:27:00 UTC) #4
Mark Seaborn
On 10 February 2014 13:59, Mark Seaborn <mseaborn@chromium.org> wrote: > On 10 February 2014 13:24, ...
6 years, 10 months ago (2014-02-11 16:42:03 UTC) #5
teravest
On Tue, Feb 11, 2014 at 9:42 AM, Mark Seaborn <mseaborn@chromium.org> wrote: > On 10 ...
6 years, 10 months ago (2014-02-11 16:47:23 UTC) #6
dmichael (off chromium)
Mark, thanks for explaining the bigger picture here nicely. Overall, I think we're going to ...
6 years, 10 months ago (2014-02-11 16:54:26 UTC) #7
teravest
The CQ bit was checked by teravest@chromium.org
6 years, 10 months ago (2014-02-11 17:05:33 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/149403005/120001
6 years, 10 months ago (2014-02-11 17:06:02 UTC) #9
commit-bot: I haz the power
6 years, 10 months ago (2014-02-11 19:00:08 UTC) #10
Message was sent while issue was closed.
Change committed as 250461

Powered by Google App Engine
This is Rietveld 408576698