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

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

Issue 1455403003: Add an option to specify requested fields for fetching metadata. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaned up. 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
« no previous file with comments | « content/public/test/async_file_test_helper.cc ('k') | storage/browser/fileapi/async_file_util_adapter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/fileapi/async_file_util.h
diff --git a/storage/browser/fileapi/async_file_util.h b/storage/browser/fileapi/async_file_util.h
index eab6af72a8ca6dd8e61f1187794d8440e56210c9..799396bb959306462cb3aeff5e819e1526aaf2fe 100644
--- a/storage/browser/fileapi/async_file_util.h
+++ b/storage/browser/fileapi/async_file_util.h
@@ -80,6 +80,7 @@ class AsyncFileUtil {
typedef base::Callback<void(int64 size)> CopyFileProgressCallback;
typedef FileSystemOperation::CopyOrMoveOption CopyOrMoveOption;
+ typedef FileSystemOperation::GetMetadataField GetMetadataField;
// Creates an AsyncFileUtil instance which performs file operations on
// local native file system. The created instance assumes
@@ -149,10 +150,10 @@ class AsyncFileUtil {
// - File::FILE_ERROR_NOT_FOUND if the file doesn't exist.
// - Other error code if there was an error while retrieving the file info.
//
- virtual void GetFileInfo(
- scoped_ptr<FileSystemOperationContext> context,
- const FileSystemURL& url,
- const GetFileInfoCallback& callback) = 0;
+ virtual void GetFileInfo(scoped_ptr<FileSystemOperationContext> context,
+ const FileSystemURL& url,
+ int fields,
+ const GetFileInfoCallback& callback) = 0;
// Reads contents of a directory at |path|.
//
« no previous file with comments | « content/public/test/async_file_test_helper.cc ('k') | storage/browser/fileapi/async_file_util_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698