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

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

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
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 7c3effefbc9813d86b1d82f91492b5c3e40a0702..9cdc49c302fd2fbf9a1598f611e193c6abf5b23f 100644
--- a/content/common/indexed_db/indexed_db_struct_traits.h
+++ b/content/common/indexed_db/indexed_db_struct_traits.h
@@ -11,6 +11,20 @@
namespace mojo {
template <>
+struct StructTraits<indexed_db::mojom::IndexKeysDataView,
+ content::IndexedDBIndexKeys> {
+ static int64_t index_id(const content::IndexedDBIndexKeys& index_keys) {
+ return index_keys.first;
+ }
+ static const std::vector<content::IndexedDBKey>& index_keys(
+ const content::IndexedDBIndexKeys& index_keys) {
+ return index_keys.second;
+ }
+ static bool Read(indexed_db::mojom::IndexKeysDataView data,
+ content::IndexedDBIndexKeys* out);
+};
+
+template <>
struct StructTraits<indexed_db::mojom::IndexMetadataDataView,
content::IndexedDBIndexMetadata> {
static int64_t id(const content::IndexedDBIndexMetadata& metadata) {
« no previous file with comments | « content/common/indexed_db/indexed_db_messages.h ('k') | content/common/indexed_db/indexed_db_struct_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698