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

Unified Diff: content/common/indexed_db/indexed_db_struct_traits.h

Issue 2773823002: Use a two-part data format version in IndexedDB metadata. (Closed)
Patch Set: jsbell, cmumford Created 3 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 side-by-side diff with in-line comments
Download patch
Index: content/common/indexed_db/indexed_db_struct_traits.h
diff --git a/content/common/indexed_db/indexed_db_struct_traits.h b/content/common/indexed_db/indexed_db_struct_traits.h
index 913b56292647633bd0623a98038d77182e0dfdb3..42aa7f3c70937b9d16177c106f7bccda58abb62b 100644
--- a/content/common/indexed_db/indexed_db_struct_traits.h
+++ b/content/common/indexed_db/indexed_db_struct_traits.h
@@ -139,6 +139,21 @@ struct StructTraits<indexed_db::mojom::DatabaseMetadataDataView,
};
template <>
+struct StructTraits<indexed_db::mojom::DataFormatVersionDataView,
+ content::IndexedDBDataFormatVersion> {
+ static uint64_t v8_version(
+ const content::IndexedDBDataFormatVersion& version) {
+ return version.v8_version();
+ }
+ static uint64_t blink_version(
+ const content::IndexedDBDataFormatVersion& version) {
+ return version.blink_version();
+ }
+ static bool Read(indexed_db::mojom::DataFormatVersionDataView data,
+ content::IndexedDBDataFormatVersion* out);
+};
+
+template <>
struct EnumTraits<indexed_db::mojom::CursorDirection,
blink::WebIDBCursorDirection> {
static indexed_db::mojom::CursorDirection ToMojom(

Powered by Google App Engine
This is Rietveld 408576698