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

Unified Diff: chrome/browser/chromeos/file_system_provider/fileapi/file_stream_writer.h

Issue 845083005: [fsp] Simplify aborting logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a comment. Created 5 years, 11 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/fileapi/file_stream_writer.h
diff --git a/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_writer.h b/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_writer.h
index 991d9ab22a586c18f3b096a4e764a35160d76b06..e3f8900bdf9a24be54d16a0b0952c17742fc0821 100644
--- a/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_writer.h
+++ b/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_writer.h
@@ -40,7 +40,7 @@ class FileStreamWriter : public storage::FileStreamWriter {
class OperationRunner;
// State of the file stream writer.
- enum State { NOT_INITIALIZED, INITIALIZING, INITIALIZED, FAILED };
+ enum State { NOT_INITIALIZED, INITIALIZING, INITIALIZED, EXECUTING, FAILED };
// Called when OperationRunner::WriteOnUIThread is completed.
void OnWriteFileCompleted(int buffer_length,
@@ -51,11 +51,6 @@ class FileStreamWriter : public storage::FileStreamWriter {
// error.
void OnWriteCompleted(net::CompletionCallback callback, int result);
- // Called when Abort() operation is completed with either a success or an
- // error.
- void OnAbortCompleted(const net::CompletionCallback& callback,
- base::File::Error result);
-
// Initializes the writer by opening the file. When completed with success,
// runs the |pending_closure|. Otherwise, calls the |error_callback|.
void Initialize(const base::Closure& pending_closure,

Powered by Google App Engine
This is Rietveld 408576698