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

Unified Diff: storage/browser/fileapi/file_system_dir_url_request_job.h

Issue 1432403003: Do not call stat() when reading directories via File API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed FSP tests. Created 5 years, 1 month 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_dir_url_request_job.h
diff --git a/storage/browser/fileapi/file_system_dir_url_request_job.h b/storage/browser/fileapi/file_system_dir_url_request_job.h
index 8715c96b0c74eaea2d32cc6254d11ad8679faaed..592805c66ca990fd3fbefb9d4b09338b6ecc8657 100644
--- a/storage/browser/fileapi/file_system_dir_url_request_job.h
+++ b/storage/browser/fileapi/file_system_dir_url_request_job.h
@@ -52,6 +52,14 @@ class STORAGE_EXPORT_PRIVATE FileSystemDirURLRequestJob
const std::vector<DirectoryEntry>& entries,
bool has_more);
+ // Reads metadata for the |index|-th entry in the directory. Must be called
+ // after |entries_| is filled.
+ void GetMetadata(size_t index);
+ void DidGetMetadata(size_t index,
+ base::File::Error result,
+ const base::File::Info& file_info);
+
+ std::vector<DirectoryEntry> entries_;
std::string data_;
FileSystemURL url_;
const std::string storage_domain_;
« no previous file with comments | « storage/browser/fileapi/async_file_util_adapter.cc ('k') | storage/browser/fileapi/file_system_dir_url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698