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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/write_file.h

Issue 1093383002: [WIP] Provided file system from NACL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Various cleanups Created 5 years, 7 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/write_file.h
diff --git a/chrome/browser/chromeos/file_system_provider/operations/write_file.h b/chrome/browser/chromeos/file_system_provider/operations/write_file.h
index c9b220fbb001192bf3725168063ad25360c5a872..07e2e9d0575c6530d59942146c1530632643d01a 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/write_file.h
+++ b/chrome/browser/chromeos/file_system_provider/operations/write_file.h
@@ -19,10 +19,6 @@ namespace base {
class FilePath;
} // namespace base
-namespace extensions {
-class EventRouter;
-} // namespace extensions
-
namespace chromeos {
namespace file_system_provider {
namespace operations {
@@ -30,9 +26,10 @@ namespace operations {
// Bridge between fileapi write file and providing extension's write fil
// request.
// Created per request.
-class WriteFile : public Operation {
+template <int source>
+class WriteFile : public Operation<source> {
public:
- WriteFile(extensions::EventRouter* event_router,
+ WriteFile(typename Operation<source>::EventRouterType* event_router,
const ProvidedFileSystemInfo& file_system_info,
int file_handle,
scoped_refptr<net::IOBuffer> buffer,
@@ -57,7 +54,7 @@ class WriteFile : public Operation {
int length_;
const storage::AsyncFileUtil::StatusCallback callback_;
- DISALLOW_COPY_AND_ASSIGN(WriteFile);
+ DISALLOW_COPY_AND_ASSIGN(WriteFile<source>);
};
} // namespace operations

Powered by Google App Engine
This is Rietveld 408576698