Index: chrome/browser/chromeos/file_system_provider/operations/open_file.h |
diff --git a/chrome/browser/chromeos/file_system_provider/operations/open_file.h b/chrome/browser/chromeos/file_system_provider/operations/open_file.h |
index 852c466e59f89176487b05aeb8e1f3e1bb83f80e..82494a3592ebbd40f334dffbaf1695e7c97ebe2e 100644 |
--- a/chrome/browser/chromeos/file_system_provider/operations/open_file.h |
+++ b/chrome/browser/chromeos/file_system_provider/operations/open_file.h |
@@ -17,19 +17,16 @@ namespace base { |
class FilePath; |
} // namespace base |
-namespace extensions { |
-class EventRouter; |
-} // namespace extensions |
- |
namespace chromeos { |
namespace file_system_provider { |
namespace operations { |
// Opens a file for either read or write. The file must exist, otherwise the |
// operation will fail. Created per request. |
-class OpenFile : public Operation { |
+template <class DestinationPolicy> |
+class OpenFile : public Operation<DestinationPolicy> { |
public: |
- OpenFile(extensions::EventRouter* event_router, |
+ OpenFile(typename DestinationPolicy::EventRouterType* event_router, |
const ProvidedFileSystemInfo& file_system_info, |
const base::FilePath& file_path, |
OpenFileMode mode, |
@@ -50,7 +47,7 @@ class OpenFile : public Operation { |
OpenFileMode mode_; |
const ProvidedFileSystemInterface::OpenFileCallback callback_; |
- DISALLOW_COPY_AND_ASSIGN(OpenFile); |
+ DISALLOW_COPY_AND_ASSIGN(OpenFile<DestinationPolicy>); |
}; |
} // namespace operations |