Chromium Code Reviews| 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 16 matching lines...) Expand all Loading... | |
| 27 FILE, | 27 FILE, |
| 28 LAST = FILE | 28 LAST = FILE |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 // These items cannot be reordered or renumbered because they're recorded to | 31 // These items cannot be reordered or renumbered because they're recorded to |
| 32 // UMA. New items must be added immediately before LAST, and LAST must be set to | 32 // UMA. New items must be added immediately before LAST, and LAST must be set to |
| 33 // the the last item. | 33 // the the last item. |
| 34 enum class IPCBlobCreationCancelCode { | 34 enum class IPCBlobCreationCancelCode { |
| 35 UNKNOWN = 0, | 35 UNKNOWN = 0, |
| 36 OUT_OF_MEMORY = 1, | 36 OUT_OF_MEMORY = 1, |
| 37 // We couldn't create or write to a file. File system error, like a full hdd. | |
|
jsbell
2016/04/04 20:41:19
nit: just say "disk"
dmurph
2016/04/04 22:17:42
Done.
| |
| 37 FILE_WRITE_FAILED = 2, | 38 FILE_WRITE_FAILED = 2, |
| 38 // The renderer was destroyed while data was in transit. | 39 // The renderer was destroyed while data was in transit. |
| 39 SOURCE_DIED_IN_TRANSIT = 3, | 40 SOURCE_DIED_IN_TRANSIT = 3, |
| 40 // The renderer destructed the blob before it was done transferring, and there | 41 // The renderer destructed the blob before it was done transferring, and there |
| 41 // were no outstanding references (no one is waiting to read) to keep the | 42 // were no outstanding references (no one is waiting to read) to keep the |
| 42 // blob alive. | 43 // blob alive. |
| 43 BLOB_DEREFERENCED_WHILE_BUILDING = 4, | 44 BLOB_DEREFERENCED_WHILE_BUILDING = 4, |
| 44 // A blob that we referenced during construction is broken, or a browser-side | 45 // A blob that we referenced during construction is broken, or a browser-side |
| 45 // builder tries to build a blob with a blob reference that isn't finished | 46 // builder tries to build a blob with a blob reference that isn't finished |
| 46 // constructing. | 47 // constructing. |
| 47 REFERENCED_BLOB_BROKEN = 5, | 48 REFERENCED_BLOB_BROKEN = 5, |
| 48 LAST = REFERENCED_BLOB_BROKEN | 49 LAST = REFERENCED_BLOB_BROKEN |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 } // namespace storage | 52 } // namespace storage |
| 52 | 53 |
| 53 #endif // STORAGE_COMMON_BLOB_STORAGE_BLOB_STORAGE_CONSTANTS_H_ | 54 #endif // STORAGE_COMMON_BLOB_STORAGE_BLOB_STORAGE_CONSTANTS_H_ |
| OLD | NEW |