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

Side by Side Diff: storage/common/blob_storage/blob_storage_constants.h

Issue 1846363002: [BlobAsync] Adding better error reporting and some new tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed switch statement Created 4 years, 8 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 unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« storage/browser/blob/blob_data_handle.cc ('K') | « storage/browser/blob/blob_storage_registry.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698