DescriptionPepper: Move StreamAsFile out of trusted plugin.
This removes a significant amount of code from the trusted plugin and
simplifies the callbacks that are used in PluginReverseInterface.
I was confused at first by the existing use of url_file_info_map_; it looks
like it was intended to serve as a cache for retrieved files, but I think the
files would be reopened every time, even if the file was already open. For
simplicity, I didn't try to add any caching behavior in this change.
Note that this changes progress events to be rate limited at 10ms per-file,
not 10ms per-plugin. It's a bit simpler to write this way, but I can
change that limit to be per-plugin if that makes more sense.
BUG=370556
R=bbudge@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272550
Patch Set 1 : #Patch Set 2 : comment fix #Patch Set 3 : rebased #Patch Set 4 : Windows fix: seek to beginning of file #Patch Set 5 : rebased #
Total comments: 2
Patch Set 6 : Rebased #Patch Set 7 : Remove "default" case statement. #
Total comments: 4
Patch Set 8 : rebased #Patch Set 9 : fixes for bbudge #Messages
Total messages: 9 (0 generated)
|