OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef STORAGE_COMMON_BLOB_STORAGE_BLOB_STORAGE_CONSTANTS_H_ | 5 #ifndef STORAGE_COMMON_BLOB_STORAGE_BLOB_STORAGE_CONSTANTS_H_ |
6 #define STORAGE_COMMON_BLOB_STORAGE_BLOB_STORAGE_CONSTANTS_H_ | 6 #define STORAGE_COMMON_BLOB_STORAGE_BLOB_STORAGE_CONSTANTS_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 IPC, | 25 IPC, |
26 SHARED_MEMORY, | 26 SHARED_MEMORY, |
27 FILE, | 27 FILE, |
28 LAST = FILE | 28 LAST = FILE |
29 }; | 29 }; |
30 | 30 |
31 enum class IPCBlobCreationCancelCode { | 31 enum class IPCBlobCreationCancelCode { |
32 UNKNOWN = 0, | 32 UNKNOWN = 0, |
33 OUT_OF_MEMORY, | 33 OUT_OF_MEMORY, |
34 FILE_WRITE_FAILED, | 34 FILE_WRITE_FAILED, |
35 LAST = FILE_WRITE_FAILED | 35 // The renderer was destroyed while data was in transit. |
| 36 SOURCE_DIED_IN_TRANSIT, |
| 37 // The renderer destructed the blob before it was done trasfering, and there |
| 38 // were no outstanding references (no one is waiting to read) to keep the |
| 39 // blob alive. |
| 40 BLOB_DEREFERENCED_WHILE_BUILDING, |
| 41 // A blob that we we referenced during construction is broken, or an |
| 42 // internal tries to build a blob with a blob reference that isn't finished |
| 43 // constructing. |
| 44 REFERENCED_BLOB_BROKEN, |
| 45 LAST = REFERENCED_BLOB_BROKEN |
36 }; | 46 }; |
37 | 47 |
38 } // namespace storage | 48 } // namespace storage |
39 | 49 |
40 #endif // STORAGE_COMMON_BLOB_STORAGE_BLOB_STORAGE_CONSTANTS_H_ | 50 #endif // STORAGE_COMMON_BLOB_STORAGE_BLOB_STORAGE_CONSTANTS_H_ |
OLD | NEW |