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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/open_file.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/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

Powered by Google App Engine
This is Rietveld 408576698