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

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

Issue 942633004: IndexedDB: Fixed support for empty blobs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Deleted CREATE_NEW_FILE. Creating file before using FileStreamWriter. Created 5 years, 10 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: storage/browser/fileapi/file_stream_writer.h
diff --git a/storage/browser/fileapi/file_stream_writer.h b/storage/browser/fileapi/file_stream_writer.h
index cc191dc9fc3c10f8d4dfc3e94b613d4cb0a5b171..9a9824ca93e2d2e745143eca4d0837a05eccbe00 100644
--- a/storage/browser/fileapi/file_stream_writer.h
+++ b/storage/browser/fileapi/file_stream_writer.h
@@ -23,15 +23,12 @@ namespace storage {
// A generic interface for writing to a file-like object.
class FileStreamWriter {
public:
- enum OpenOrCreate { OPEN_EXISTING_FILE, CREATE_NEW_FILE };
-
// Creates a writer for the existing file in the path |file_path| starting
// from |initial_offset|. Uses |task_runner| for async file operations.
STORAGE_EXPORT static FileStreamWriter* CreateForLocalFile(
base::TaskRunner* task_runner,
const base::FilePath& file_path,
- int64 initial_offset,
- OpenOrCreate open_or_create);
+ int64 initial_offset);
// 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