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

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

Issue 2516713002: [BlobStorage] Implementing disk. (Closed)
Patch Set: comments, and hopefully browsertest cleanup Created 4 years 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 ERR_BLOB_DEREFERENCED_WHILE_BUILDING = 4, 66 ERR_BLOB_DEREFERENCED_WHILE_BUILDING = 4,
67 // A blob that we referenced during construction is broken, or a browser-side 67 // A blob that we referenced during construction is broken, or a browser-side
68 // builder tries to build a blob with a blob reference that isn't finished 68 // builder tries to build a blob with a blob reference that isn't finished
69 // constructing. 69 // constructing.
70 ERR_REFERENCED_BLOB_BROKEN = 5, 70 ERR_REFERENCED_BLOB_BROKEN = 5,
71 LAST_ERROR = ERR_REFERENCED_BLOB_BROKEN, 71 LAST_ERROR = ERR_REFERENCED_BLOB_BROKEN,
72 72
73 // Blob state section: 73 // Blob state section:
74 // The blob has finished. 74 // The blob has finished.
75 DONE = 200, 75 DONE = 200,
76 // The system is pending on quota being granted, the transport layer 76 // Waiting for memory or file quota for the to-be transported data.
77 // populating pending data, and/or copying data from dependent blobs. See
78 // BlobEntry::BuildingState determine which of these are happening, as they
79 // all can happen concurrently.
80 PENDING_QUOTA = 201, 77 PENDING_QUOTA = 201,
78 // Waiting for data to be transported (quota has been granted).
81 PENDING_TRANSPORT = 202, 79 PENDING_TRANSPORT = 202,
80 // Waiting for any operations involving dependent blobs after transport data
81 // has been populated. See BlobEntry::BuildingState for more info.
82 PENDING_INTERNALS = 203, 82 PENDING_INTERNALS = 203,
pwnall 2016/12/01 01:12:14 Should this be named PENDING_REFERENCED_BLOBS? I r
dmurph 2016/12/01 20:40:59 crbug.com/670398
83 LAST = PENDING_INTERNALS 83 LAST = PENDING_INTERNALS
84 }; 84 };
85 85
86 using BlobStatusCallback = base::Callback<void(BlobStatus)>; 86 using BlobStatusCallback = base::Callback<void(BlobStatus)>;
87 87
88 // Returns if the status is an error code. 88 // Returns if the status is an error code.
89 STORAGE_COMMON_EXPORT bool BlobStatusIsError(BlobStatus status); 89 STORAGE_COMMON_EXPORT bool BlobStatusIsError(BlobStatus status);
90 90
91 STORAGE_COMMON_EXPORT bool BlobStatusIsPending(BlobStatus status); 91 STORAGE_COMMON_EXPORT bool BlobStatusIsPending(BlobStatus status);
92 92
93 // Returns if the status is a bad enough error to flag the IPC as bad. This is 93 // Returns if the status is a bad enough error to flag the IPC as bad. This is
94 // only INVALID_CONSTRUCTION_ARGUMENTS. 94 // only INVALID_CONSTRUCTION_ARGUMENTS.
95 STORAGE_COMMON_EXPORT bool BlobStatusIsBadIPC(BlobStatus status); 95 STORAGE_COMMON_EXPORT bool BlobStatusIsBadIPC(BlobStatus status);
96 96
97 } // namespace storage 97 } // namespace storage
98 98
99 #endif // STORAGE_COMMON_BLOB_STORAGE_BLOB_STORAGE_CONSTANTS_H_ 99 #endif // STORAGE_COMMON_BLOB_STORAGE_BLOB_STORAGE_CONSTANTS_H_
OLDNEW
« storage/browser/blob/blob_storage_context.cc ('K') | « storage/browser/blob/blob_storage_context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698