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

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

Issue 2449953008: Port messages sent by WebIDBDatabaseImpl to Mojo. (Closed)
Patch Set: Address more comments from dcheng@. Created 4 years, 1 month 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
« no previous file with comments | « content/common/indexed_db/indexed_db_struct_traits.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/indexed_db/indexed_db_struct_traits.cc
diff --git a/content/common/indexed_db/indexed_db_struct_traits.cc b/content/common/indexed_db/indexed_db_struct_traits.cc
index 1ea67de8b3edab5013d68e61f36741e92b2467f6..d304b0fca01ca16533b41aa0abd07d4a706dd222 100644
--- a/content/common/indexed_db/indexed_db_struct_traits.cc
+++ b/content/common/indexed_db/indexed_db_struct_traits.cc
@@ -8,6 +8,16 @@
namespace mojo {
+// static
+bool StructTraits<indexed_db::mojom::IndexKeysDataView,
+ content::IndexedDBIndexKeys>::
+ Read(indexed_db::mojom::IndexKeysDataView data,
+ content::IndexedDBIndexKeys* out) {
+ out->first = data.index_id();
+ return data.ReadIndexKeys(&out->second);
+}
+
+// static
bool StructTraits<indexed_db::mojom::IndexMetadataDataView,
content::IndexedDBIndexMetadata>::
Read(indexed_db::mojom::IndexMetadataDataView data,
@@ -22,6 +32,7 @@ bool StructTraits<indexed_db::mojom::IndexMetadataDataView,
return true;
}
+// static
bool StructTraits<indexed_db::mojom::ObjectStoreMetadataDataView,
content::IndexedDBObjectStoreMetadata>::
Read(indexed_db::mojom::ObjectStoreMetadataDataView data,
@@ -48,6 +59,7 @@ bool StructTraits<indexed_db::mojom::ObjectStoreMetadataDataView,
return true;
}
+// static
bool StructTraits<indexed_db::mojom::DatabaseMetadataDataView,
content::IndexedDBDatabaseMetadata>::
Read(indexed_db::mojom::DatabaseMetadataDataView data,
« no previous file with comments | « content/common/indexed_db/indexed_db_struct_traits.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698