DescriptionIn BlobURLRequestJob, open files asynchronously to avoid blocking the IO thread
(and tripping thread restriction asserts).
The bug was found while trying to get FileWriter ui_tests to pass
(see http://codereview.chromium.org/6609040/).
This change also changes all callers to pass in a file_thread_proxy so
the class can assume it's there and pass it to FileUtilProxy.
Finally, it adds a BlobURLRequestJob test case that reads a file larger
than the buffer size, to better exercise the job's behavior when ReadRawData()
is called multiple times.
BUG=75548
TEST=test_shell_tests,ui_tests
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78079
Patch Set 1 #Patch Set 2 : Properly handle multiple calls to ReadRawData and add a test for that case #
Total comments: 6
Patch Set 3 : Make const, reserve string space #Patch Set 4 : Put const on the correct method #Patch Set 5 : Store bytes_to_read_ in a member variable #
Total comments: 4
Patch Set 6 : Added DCHECK, merged with trunk #
Messages
Total messages: 10 (0 generated)
|