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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/create_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/create_directory.h
diff --git a/chrome/browser/chromeos/file_system_provider/operations/create_directory.h b/chrome/browser/chromeos/file_system_provider/operations/create_directory.h
index ed57b8dde747a6d18ca0655da1f4b070cf43c440..6d8a895dd7723a5a970571e583ac277a5ec8f440 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/create_directory.h
+++ b/chrome/browser/chromeos/file_system_provider/operations/create_directory.h
@@ -16,10 +16,6 @@ namespace base {
class FilePath;
} // namespace base
-namespace extensions {
-class EventRouter;
-} // namespace extensions
-
namespace chromeos {
namespace file_system_provider {
namespace operations {
@@ -27,9 +23,10 @@ namespace operations {
// Creates a directory. If |recursive| is set to true, then creates also all
// non-existing directories on the path. The operation will fail if the
// directory already exists. Created per request.
-class CreateDirectory : public Operation {
+template <class DestinationPolicy>
+class CreateDirectory : public Operation<DestinationPolicy> {
public:
- CreateDirectory(extensions::EventRouter* event_router,
+ CreateDirectory(typename DestinationPolicy::EventRouterType* event_router,
const ProvidedFileSystemInfo& file_system_info,
const base::FilePath& directory_path,
bool recursive,
@@ -50,7 +47,7 @@ class CreateDirectory : public Operation {
bool recursive_;
const storage::AsyncFileUtil::StatusCallback callback_;
- DISALLOW_COPY_AND_ASSIGN(CreateDirectory);
+ DISALLOW_COPY_AND_ASSIGN(CreateDirectory<DestinationPolicy>);
};
} // namespace operations

Powered by Google App Engine
This is Rietveld 408576698