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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/create_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/create_file.h
diff --git a/chrome/browser/chromeos/file_system_provider/operations/create_file.h b/chrome/browser/chromeos/file_system_provider/operations/create_file.h
index 9fcd295217de98e239b8160aaea82b52a308376a..ced9cb5cb1e35bcb03790431f4dd4a5247603720 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/create_file.h
+++ b/chrome/browser/chromeos/file_system_provider/operations/create_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 {
// Creates a file. If the file already exists, then the operation will fail with
// the FILE_ERROR_EXISTS error. Created per request.
-class CreateFile : public Operation {
+template <class DestinationPolicy>
+class CreateFile : public Operation<DestinationPolicy> {
public:
- CreateFile(extensions::EventRouter* event_router,
+ CreateFile(typename DestinationPolicy::EventRouterType* event_router,
const ProvidedFileSystemInfo& file_system_info,
const base::FilePath& file_path,
const storage::AsyncFileUtil::StatusCallback& callback);
@@ -48,7 +45,7 @@ class CreateFile : public Operation {
base::FilePath file_path_;
const storage::AsyncFileUtil::StatusCallback callback_;
- DISALLOW_COPY_AND_ASSIGN(CreateFile);
+ DISALLOW_COPY_AND_ASSIGN(CreateFile<DestinationPolicy>);
};
} // namespace operations

Powered by Google App Engine
This is Rietveld 408576698