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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/truncate.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/truncate.h
diff --git a/chrome/browser/chromeos/file_system_provider/operations/truncate.h b/chrome/browser/chromeos/file_system_provider/operations/truncate.h
index 079626559222cb73fc21d79f8f41d2a5583ddbff..7a1e75e51cda18f4c68bf3f0faa62ec1bb10f219 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/truncate.h
+++ b/chrome/browser/chromeos/file_system_provider/operations/truncate.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 Truncate : public Operation {
+template <class DestinationPolicy>
+class Truncate : public Operation<DestinationPolicy> {
public:
- Truncate(extensions::EventRouter* event_router,
+ Truncate(typename DestinationPolicy::EventRouterType* event_router,
const ProvidedFileSystemInfo& file_system_info,
const base::FilePath& file_path,
int64 length,
@@ -50,7 +47,7 @@ class Truncate : public Operation {
int64 length_;
const storage::AsyncFileUtil::StatusCallback callback_;
- DISALLOW_COPY_AND_ASSIGN(Truncate);
+ DISALLOW_COPY_AND_ASSIGN(Truncate<DestinationPolicy>);
};
} // namespace operations

Powered by Google App Engine
This is Rietveld 408576698