Index: content/browser/indexed_db/indexed_db_leveldb_coding.h |
diff --git a/content/browser/indexed_db/indexed_db_leveldb_coding.h b/content/browser/indexed_db/indexed_db_leveldb_coding.h |
index a86d53f77fc641c595e41a8b1faee0d038b6dafa..e796795d1b6e3d1397077d9a1e562debc905e532 100644 |
--- a/content/browser/indexed_db/indexed_db_leveldb_coding.h |
+++ b/content/browser/indexed_db/indexed_db_leveldb_coding.h |
@@ -23,6 +23,10 @@ CONTENT_EXPORT extern const unsigned char kMinimumIndexId; |
CONTENT_EXPORT std::string MaxIDBKey(); |
CONTENT_EXPORT std::string MinIDBKey(); |
+// DatabaseId, BlobKey |
+typedef std::pair<int64_t, int64_t> BlobJournalEntryType; |
+typedef std::vector<BlobJournalEntryType> BlobJournalType; |
+ |
CONTENT_EXPORT void EncodeByte(unsigned char value, std::string* into); |
CONTENT_EXPORT void EncodeBool(bool value, std::string* into); |
CONTENT_EXPORT void EncodeInt(int64 value, std::string* into); |
@@ -36,6 +40,8 @@ CONTENT_EXPORT void EncodeDouble(double value, std::string* into); |
CONTENT_EXPORT void EncodeIDBKey(const IndexedDBKey& value, std::string* into); |
CONTENT_EXPORT void EncodeIDBKeyPath(const IndexedDBKeyPath& value, |
std::string* into); |
+CONTENT_EXPORT void EncodeBlobJournal(const BlobJournalType& journal, |
+ std::string* into); |
CONTENT_EXPORT WARN_UNUSED_RESULT bool DecodeByte(base::StringPiece* slice, |
unsigned char* value); |
@@ -60,6 +66,9 @@ CONTENT_EXPORT WARN_UNUSED_RESULT bool DecodeIDBKey( |
CONTENT_EXPORT WARN_UNUSED_RESULT bool DecodeIDBKeyPath( |
base::StringPiece* slice, |
IndexedDBKeyPath* value); |
+CONTENT_EXPORT WARN_UNUSED_RESULT bool DecodeBlobJournal( |
+ base::StringPiece* slice, |
+ BlobJournalType* journal); |
CONTENT_EXPORT int CompareEncodedStringsWithLength(base::StringPiece* slice1, |
base::StringPiece* slice2, |