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

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

Issue 1234813004: [BlobAsync] Asynchronous Blob Construction Final Patch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blob-protocol-change
Patch Set: added shared memory test, and fixed memory leak Created 4 years, 10 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 14 matching lines...) Expand all
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698