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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/read_directory.h

Issue 246913003: [fsp] Add support for reading directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 years, 7 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: chrome/browser/chromeos/file_system_provider/operations/read_directory.h
diff --git a/chrome/browser/chromeos/file_system_provider/operations/get_metadata.h b/chrome/browser/chromeos/file_system_provider/operations/read_directory.h
similarity index 75%
copy from chrome/browser/chromeos/file_system_provider/operations/get_metadata.h
copy to chrome/browser/chromeos/file_system_provider/operations/read_directory.h
index 804bc3e901274d9547ae90594dfaa742c28b4a5e..68176d978c22579c4a3761ec5434df978d168a5a 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/get_metadata.h
+++ b/chrome/browser/chromeos/file_system_provider/operations/read_directory.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_GET_METADATA_H_
-#define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_GET_METADATA_H_
+#ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_READ_DIRECTORY_H_
+#define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_READ_DIRECTORY_H_
#include "base/files/file.h"
#include "base/memory/scoped_ptr.h"
@@ -26,13 +26,13 @@ namespace operations {
// Bridge between fileapi read directory operation and providing extension's
// read directory request. Created per request.
-class GetMetadata : public Operation {
+class ReadDirectory : public Operation {
public:
- GetMetadata(extensions::EventRouter* event_router,
- const ProvidedFileSystemInfo& file_system_info,
- const base::FilePath& directory_path,
- const fileapi::AsyncFileUtil::GetFileInfoCallback& callback);
- virtual ~GetMetadata();
+ ReadDirectory(extensions::EventRouter* event_router,
+ const ProvidedFileSystemInfo& file_system_info,
+ const base::FilePath& directory_path,
+ const fileapi::AsyncFileUtil::ReadDirectoryCallback& callback);
+ virtual ~ReadDirectory();
// Operation overrides.
virtual bool Execute(int request_id) OVERRIDE;
@@ -43,13 +43,13 @@ class GetMetadata : public Operation {
private:
base::FilePath directory_path_;
- const fileapi::AsyncFileUtil::GetFileInfoCallback callback_;
+ const fileapi::AsyncFileUtil::ReadDirectoryCallback callback_;
- DISALLOW_COPY_AND_ASSIGN(GetMetadata);
+ DISALLOW_COPY_AND_ASSIGN(ReadDirectory);
};
} // namespace operations
} // namespace file_system_provider
} // namespace chromeos
-#endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_GET_METADATA_H_
+#endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_READ_DIRECTORY_H_

Powered by Google App Engine
This is Rietveld 408576698