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

Unified Diff: webkit/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: Fixed. 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: webkit/browser/fileapi/file_system_context.cc
diff --git a/webkit/browser/fileapi/file_system_context.cc b/webkit/browser/fileapi/file_system_context.cc
index 7de00a5638bf8cb09e894dd75ed94055d0714434..7963428f33e794b0cab8b77eebcd8c2b147fbd36 100644
--- a/webkit/browser/fileapi/file_system_context.cc
+++ b/webkit/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