Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(742)

Unified Diff: storage/browser/fileapi/file_system_context.cc

Issue 470323003: [fsp] Improve performance for reading small chunks of data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: storage/browser/fileapi/file_system_context.cc
diff --git a/storage/browser/fileapi/file_system_context.cc b/storage/browser/fileapi/file_system_context.cc
index f42e11ae2baa4225d8eaaeb421d05392f3b2f434..7c93540e3c1b1fb094ce4d026f884152a439bc21 100644
--- a/storage/browser/fileapi/file_system_context.cc
+++ b/storage/browser/fileapi/file_system_context.cc
@@ -437,6 +437,7 @@ void FileSystemContext::DeleteFileSystem(
scoped_ptr<storage::FileStreamReader> FileSystemContext::CreateFileStreamReader(
const FileSystemURL& url,
int64 offset,
+ int64 max_bytes_to_read,
const base::Time& expected_modification_time) {
if (!url.is_valid())
return scoped_ptr<storage::FileStreamReader>();
@@ -444,7 +445,7 @@ scoped_ptr<storage::FileStreamReader> FileSystemContext::CreateFileStreamReader(
if (!backend)
return scoped_ptr<storage::FileStreamReader>();
return backend->CreateFileStreamReader(
- url, offset, expected_modification_time, this);
+ url, offset, max_bytes_to_read, expected_modification_time, this);
}
scoped_ptr<FileStreamWriter> FileSystemContext::CreateFileStreamWriter(

Powered by Google App Engine
This is Rietveld 408576698