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

Unified Diff: storage/browser/blob/blob_transport_result.h

Issue 1234813004: [BlobAsync] Asynchronous Blob Construction Final Patch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blob-protocol-change
Patch Set: comments Created 4 years, 9 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/blob/blob_transport_result.h
diff --git a/storage/browser/blob/blob_transport_result.h b/storage/browser/blob/blob_transport_result.h
new file mode 100644
index 0000000000000000000000000000000000000000..9aa2f72ad4aa2ab2da5ae055dd14c4698abfda08
--- /dev/null
+++ b/storage/browser/blob/blob_transport_result.h
@@ -0,0 +1,27 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef STORAGE_BROWSER_BLOB_BLOB_TRANSPORT_RESULT_H_
+#define STORAGE_BROWSER_BLOB_BLOB_TRANSPORT_RESULT_H_
+
+namespace storage {
+
+// This 'result' enum is used in the blob transport logic.
+enum class BlobTransportResult {
+ // This means we should flag the incoming IPC as a bad IPC.
+ BAD_IPC,
+ // Cancel reasons.
+ CANCEL_MEMORY_FULL,
+ CANCEL_FILE_ERROR,
+ CANCEL_REFERENCED_BLOB_BROKEN,
+ CANCEL_UNKNOWN,
+ // This means we're waiting on responses from the renderer.
+ PENDING_RESPONSES,
+ // We're done registering or transferring the blob.
+ DONE
+};
+
+} // namespace storage
+
+#endif // STORAGE_BROWSER_BLOB_BLOB_TRANSPORT_RESULT_H_

Powered by Google App Engine
This is Rietveld 408576698