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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/delete_entry.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/delete_entry.h
diff --git a/chrome/browser/chromeos/file_system_provider/operations/delete_entry.h b/chrome/browser/chromeos/file_system_provider/operations/delete_entry.h
index bab26d15acbf95374da9e36d09511e862d92b871..3b9712c2a00af43c4acc7bb5050e6c5c22e5c07c 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/delete_entry.h
+++ b/chrome/browser/chromeos/file_system_provider/operations/delete_entry.h
@@ -16,9 +16,6 @@ namespace base {
class FilePath;
} // namespace base
-namespace extensions {
-class EventRouter;
-} // namespace extensions
namespace chromeos {
namespace file_system_provider {
@@ -26,9 +23,10 @@ namespace operations {
// Deletes an entry. If |recursive| is passed and the entry is a directory, then
// all contents of it (recursively) will be deleted too. Created per request.
-class DeleteEntry : public Operation {
+template <class DestinationPolicy>
+class DeleteEntry : public Operation<DestinationPolicy> {
public:
- DeleteEntry(extensions::EventRouter* event_router,
+ DeleteEntry(typename DestinationPolicy::EventRouterType* event_router,
const ProvidedFileSystemInfo& file_system_info,
const base::FilePath& entry_path,
bool recursive,
@@ -49,7 +47,7 @@ class DeleteEntry : public Operation {
bool recursive_;
const storage::AsyncFileUtil::StatusCallback callback_;
- DISALLOW_COPY_AND_ASSIGN(DeleteEntry);
+ DISALLOW_COPY_AND_ASSIGN(DeleteEntry<DestinationPolicy>);
};
} // namespace operations

Powered by Google App Engine
This is Rietveld 408576698