Increase the kDataSize value to the maximum allowed to improve resource loading speed (issue #301).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@300 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2011-10-03 16:00:51 +00:00
parent 9fa941f1d7
commit fb67a371fe
1 changed files with 3 additions and 2 deletions

View File

@ -821,8 +821,9 @@ class RequestProxy : public net::URLRequest::Delegate,
net::FileStream file_stream_;
scoped_refptr<DeletableFileReference> downloaded_file_;
// Size of our async IO data buffers
static const int kDataSize = 16*1024;
// Size of our async IO data buffers. Limited by the sanity check in
// URLRequestJob::Read().
static const int kDataSize = 1000000-1;
// read buffer for async IO
scoped_refptr<net::IOBuffer> buf_;