|
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
Total comments: 2
|
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
|
Total messages: 10 (0 generated)
|