Index: chrome/browser/chromeos/file_system_provider/operations/add_watcher.h |
diff --git a/chrome/browser/chromeos/file_system_provider/operations/add_watcher.h b/chrome/browser/chromeos/file_system_provider/operations/add_watcher.h |
index d938744122d9e428da0915a4523ba0214094f98b..30d201ffd75bea3f05379e8749c0414659240e81 100644 |
--- a/chrome/browser/chromeos/file_system_provider/operations/add_watcher.h |
+++ b/chrome/browser/chromeos/file_system_provider/operations/add_watcher.h |
@@ -17,10 +17,6 @@ namespace base { |
class FilePath; |
} // namespace base |
-namespace extensions { |
-class EventRouter; |
-} // namespace extensions |
- |
namespace chromeos { |
namespace file_system_provider { |
namespace operations { |
@@ -28,9 +24,10 @@ namespace operations { |
// Adds a watcher. If |recursive| is true, than also watches for all of the |
// child entries in within, recursively. Recursive must not be set to true for |
// files. |
-class AddWatcher : public Operation { |
+template <int source> |
+class AddWatcher : public Operation<source> { |
public: |
- AddWatcher(extensions::EventRouter* event_router, |
+ AddWatcher(typename Operation<source>::EventRouterType* event_router, |
const ProvidedFileSystemInfo& file_system_info, |
const base::FilePath& entry_path, |
bool recursive, |
@@ -51,7 +48,7 @@ class AddWatcher : public Operation { |
const bool recursive_; |
const storage::AsyncFileUtil::StatusCallback callback_; |
- DISALLOW_COPY_AND_ASSIGN(AddWatcher); |
+ DISALLOW_COPY_AND_ASSIGN(AddWatcher<source>); |
}; |
} // namespace operations |