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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBStructTraits.h

Issue 1963293002: Replacing Indexed DB Chromium IPC with Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring after Passing URLRequestContextGetter. Created 4 years, 4 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: third_party/WebKit/Source/modules/indexeddb/IDBStructTraits.h
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBStructTraits.h b/third_party/WebKit/Source/modules/indexeddb/IDBStructTraits.h
new file mode 100644
index 0000000000000000000000000000000000000000..d3414066cc396d0fc7a6247c42a431ed951eb4cb
--- /dev/null
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBStructTraits.h
@@ -0,0 +1,27 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IDBStructTraits_h
+#define IDBStructTraits_h
+
+#include "Source/modules/indexeddb/indexed_db.mojom-blink.h"
+#include "public/platform/modules/indexeddb/WebIDBTypes.h"
+
+namespace mojo {
+
+template <>
+struct EnumTraits<indexed_db::mojom::blink::DataLoss, blink::WebIDBDataLoss> {
+ static indexed_db::mojom::blink::DataLoss ToMojom(blink::WebIDBDataLoss input);
+ static bool FromMojom(indexed_db::mojom::blink::DataLoss input,
+ blink::WebIDBDataLoss* output);
+};
+
+// TODO(cmumford): Can't include IDBKey.h - does v8 stuff.
+
+// TODO(cmumford): Looks like can't map to metadata because it has a
+// IDBKeyPath which depends on V8 :-(.
+
+} // namespace mojo
+
+#endif // IDBStructTraits_h

Powered by Google App Engine
This is Rietveld 408576698