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

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

Issue 1093383002: [WIP] Provided file system from NACL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved several modules to chromeos folder. Created 5 years, 5 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/read_directory.h b/chrome/browser/chromeos/file_system_provider/operations/read_directory.h
index 3e1e3699dc68a202f3d378c876eba0901ef2480c..ca0cba2d4536fd89d2075056591d81528f8aba1d 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/read_directory.h
+++ b/chrome/browser/chromeos/file_system_provider/operations/read_directory.h
@@ -16,19 +16,16 @@ namespace base {
class FilePath;
} // namespace base
-namespace extensions {
-class EventRouter;
-} // namespace extensions
-
namespace chromeos {
namespace file_system_provider {
namespace operations {
// Bridge between fileapi read directory operation and providing extension's
// read directory request. Created per request.
-class ReadDirectory : public Operation {
+template <class DestinationPolicy>
+class ReadDirectory : public Operation<DestinationPolicy> {
public:
- ReadDirectory(extensions::EventRouter* event_router,
+ ReadDirectory(typename DestinationPolicy::EventRouterType* event_router,
const ProvidedFileSystemInfo& file_system_info,
const base::FilePath& directory_path,
const storage::AsyncFileUtil::ReadDirectoryCallback& callback);
@@ -47,7 +44,7 @@ class ReadDirectory : public Operation {
base::FilePath directory_path_;
const storage::AsyncFileUtil::ReadDirectoryCallback callback_;
- DISALLOW_COPY_AND_ASSIGN(ReadDirectory);
+ DISALLOW_COPY_AND_ASSIGN(ReadDirectory<DestinationPolicy>);
};
} // namespace operations

Powered by Google App Engine
This is Rietveld 408576698