Introduce Stream::flush [2/2 chromium]
commitc93d25b4d2cb0981bfc1723bc401ff23c9302e58
authorhoro <horo@chromium.org>
Wed, 10 Dec 2014 11:58:14 +0000 (10 03:58 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 10 Dec 2014 11:58:40 +0000 (10 11:58 +0000)
tree0963adf2470c07626cd263d4479862eba3796af0
parent90f50395caa60fe73d29aac4cea2d1ca4c47be61
Introduce Stream::flush [2/2 chromium]

There is no way to flush the buffer in the stream.
This cl introduces Stream::flush method.
We can flush the buffer in the browser process using this method from blink.

We will use this method when we send the data from the ServiceWorker to the browser process progressively.

blink: https://codereview.chromium.org/747323007/
2/2 chromium: https://codereview.chromium.org/760823002/

BUG=436424

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

Cr-Commit-Position: refs/heads/master@{#307684}
content/browser/fileapi/fileapi_message_filter.cc
content/browser/fileapi/fileapi_message_filter.h
content/browser/streams/stream.cc
content/browser/streams/stream.h
content/browser/streams/stream_unittest.cc
content/child/webblobregistry_impl.cc
content/child/webblobregistry_impl.h
content/common/fileapi/webblob_messages.h
content/test/mock_webblob_registry_impl.cc
content/test/mock_webblob_registry_impl.h