DescriptionPNaCl on-demand installs: Make a separate async IPC to check if PNaCl is installed.
Previously, there was a single synchronous IPC that would
check if PNaCl is installed, then install if not installed,
as well as open the individual files read-only.
That sync IPC would block the UI if it needed to install PNaCl.
Instead separate checking from the opening a file read-only.
Have a separate IPC that is async, so that the UI is
not blocked, and progress events could eventually be sent.
Some basic plumbing of progress events is set up, but not
yet wired up to JS.
Order of events is:
CheckInstalled
* if Installed, reply w/ success
* if not Installed {
send progress event indicated install start
try install
(may send more progress events)
send progress of install success or failure
}
BUG=252760
TEST=unit_tests --gtest_filter=NaClFileHostTest* (and manual)
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215844
Patch Set 1 #Patch Set 2 : debug #Patch Set 3 : add some tests and convert render_view_id to instance #Patch Set 4 : semicolons #Patch Set 5 : cleanup #Patch Set 6 : enforce order #
Total comments: 1
Patch Set 7 : comment #Patch Set 8 : const ref #
Total comments: 12
Patch Set 9 : dschuff review 1 #Patch Set 10 : rebase #Patch Set 11 : signed unsigned #Patch Set 12 : int64_t to int64 #
Total comments: 24
Patch Set 13 : Add thread checks and split #Patch Set 14 : use progress struct and simplify thread bouncing #Patch Set 15 : more cleanup #Patch Set 16 : struct #
Total comments: 2
Patch Set 17 : rebase #Patch Set 18 : take out progress IPC for now #Messages
Total messages: 21 (0 generated)
|