| Index: webkit/browser/fileapi/file_stream_writer.h
|
| diff --git a/webkit/browser/fileapi/file_stream_writer.h b/webkit/browser/fileapi/file_stream_writer.h
|
| index 1ebdfb9191af2a0b2a7b5fd4fc12ff8e4d96330c..893583844f413073c0c97025afe695128b4f533f 100644
|
| --- a/webkit/browser/fileapi/file_stream_writer.h
|
| +++ b/webkit/browser/fileapi/file_stream_writer.h
|
| @@ -23,12 +23,18 @@ namespace fileapi {
|
| // A generic interface for writing to a file-like object.
|
| class FileStreamWriter {
|
| public:
|
| + enum OpenOrCreate {
|
| + OPEN_EXISTING,
|
| + CREATE_NEW
|
| + };
|
| +
|
| // Creates a writer for the existing file in the path |file_path| starting
|
| // from |initial_offset|. Uses |task_runner| for async file operations.
|
| WEBKIT_STORAGE_BROWSER_EXPORT static FileStreamWriter* CreateForLocalFile(
|
| base::TaskRunner* task_runner,
|
| const base::FilePath& file_path,
|
| - int64 initial_offset);
|
| + int64 initial_offset,
|
| + OpenOrCreate open_or_create);
|
|
|
| // Closes the file. If there's an in-flight operation, it is canceled (i.e.,
|
| // the callback function associated with the operation is not called).
|
|
|