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_ |