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

Unified Diff: webkit/browser/fileapi/file_system_context.h

Issue 470323003: [fsp] Improve performance for reading small chunks of data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed a dcheck. Created 6 years, 4 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.h
diff --git a/webkit/browser/fileapi/file_system_context.h b/webkit/browser/fileapi/file_system_context.h
index 428ef601149e660da3b49cdb710d5704a26609ed..a69afb6552e7b900954e1d55381eae94ed09d111 100644
--- a/webkit/browser/fileapi/file_system_context.h
+++ b/webkit/browser/fileapi/file_system_context.h
@@ -246,9 +246,12 @@ class WEBKIT_STORAGE_BROWSER_EXPORT FileSystemContext
// FileSystemBackend for the URL and call the backend's CreateFileReader.
// The resolved FileSystemBackend could perform further specialization
// depending on the filesystem type pointed by the |url|.
+ // The |length| argument says how many bytes are going to be read using the
+ // instance of the file stream reader. If unknown, then equal to -1.
hashimoto 2014/08/22 06:53:42 Why don't you use kuint64max (or kint64max) to be
mtomasz 2014/08/25 03:32:31 Seems that kuint64max and kint64max are deprecated
hashimoto 2014/09/01 11:01:01 I'm asking about consistency with the existing cod
scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader(
const FileSystemURL& url,
int64 offset,
+ int64 length,
const base::Time& expected_modification_time);
// Creates new FileStreamWriter instance to write into a file pointed by

Powered by Google App Engine
This is Rietveld 408576698