Index: webkit/fileapi/file_system_operation_interface.h |
diff --git a/webkit/fileapi/file_system_operation_interface.h b/webkit/fileapi/file_system_operation_interface.h |
index ef75e4c7f39f593607a05ca3561fd889fb54dbdd..6a8a894821b0325ab3085815aebedbc549228491 100644 |
--- a/webkit/fileapi/file_system_operation_interface.h |
+++ b/webkit/fileapi/file_system_operation_interface.h |
@@ -21,6 +21,7 @@ class GURL; |
namespace fileapi { |
class FileSystemCallbackDispatcher; |
+class FileSystemOperation; |
// The interface class for FileSystemOperation implementations. |
// |
@@ -145,6 +146,11 @@ class FileSystemOperationInterface { |
const GURL& path, |
int file_flags, |
base::ProcessHandle peer_handle) = 0; |
+ |
+ // For downcasting to FileSystemOperation. |
+ // TODO(kinuko): this hack should go away once appropriate upload-stream |
+ // handling based on element types is supported. |
+ virtual FileSystemOperation* AsFileSystemOperation() = 0; |
}; |
} // namespace fileapi |