Allow custom TaskRunners for async operations in net::FileStream.
Make the FileStream constructor accept as a parameter the TaskRunner to
be used for async file operations. Use base::WorkerPool by default.
Also, change webkit::LocalFileStreamReader so that the same TaskRunner
that we use for other file operations is passed to FileStream. With this
change, FileSystemFileStreamReader tests shut down cleanly, whereas
previously they leaked memory.
BUG=248513
R=willchan,kinuko
Review URL: https://chromiumcodereview.appspot.com/16986002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206767 0039d316-1c4b-4281-b951-d872f2087c98
7 files changed