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

Unified Diff: webkit/browser/fileapi/file_stream_writer.h

Issue 18023022: Blob support for IDB [Chromium] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Handle the rest of Josh's feedback. Created 7 years 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: 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).

Powered by Google App Engine
This is Rietveld 408576698