Threaded data provider: Support main thread data notifications (Chrome side)
commit0c7c18bfcea9d8c8b0f88558905221851d2b93ae
authoroysteine <oysteine@chromium.org>
Thu, 5 Feb 2015 01:23:04 +0000 (4 17:23 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 5 Feb 2015 01:25:14 +0000 (5 01:25 +0000)
tree96c99289e4e09efb502364ee04a8a29b469ab0e1
parent4ea5490a5e7b248389249756f132403b61a6944a
Threaded data provider: Support main thread data notifications (Chrome side)

The threaded data receiver will now receive notifications about received data packets on the main thread (needed for the progress indicator to work properly), and can optionally specify that it wants to receive a full copy of the data (needed when the Inspector is attached).

If a threaded data receiver is attached to a resource request, we also now make sure the resource completed message is bounced via the background thread, to make sure all data is received on the main thread first.

Blink side patch: https://codereview.chromium.org/690793003

BUG=398076

Review URL: https://codereview.chromium.org/689713004

Cr-Commit-Position: refs/heads/master@{#314704}
content/child/resource_dispatcher.cc
content/child/resource_dispatcher.h
content/child/threaded_data_provider.cc
content/child/threaded_data_provider.h