Index: third_party/WebKit/Source/modules/indexeddb/IDBMojoUtil.h |
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBMojoUtil.h b/third_party/WebKit/Source/modules/indexeddb/IDBMojoUtil.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..da738ef6be94f64742f9861499b86b9339b80177 |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBMojoUtil.h |
@@ -0,0 +1,39 @@ |
+// 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 IDBMojoUtil_h |
+#define IDBMojoUtil_h |
+ |
+#include "Source/modules/indexeddb/indexed_db.mojom-blink.h" |
+#include "public/platform/modules/indexeddb/WebIDBValue.h" |
+#include "wtf/Vector.h" |
+ |
+namespace blink { |
+ |
+class ExceptionState; |
+class ExecutionContext; |
+struct IDBDatabaseMetadata; |
+class IDBKey; |
+class IDBKeyPath; |
+class IDBKeyRange; |
+class ScriptValue; |
+class WebBlobInfo; |
+class WebSecurityOrigin; |
+ |
+WebIDBValue createValue(const indexed_db::mojom::blink::ValuePtr&); |
+indexed_db::mojom::blink::KeyPathPtr createKeyPath(const IDBKeyPath&); |
+IDBKeyPath createKeyPath(const indexed_db::mojom::blink::KeyPathPtr&); |
+indexed_db::mojom::blink::KeyPtr createKey(const IDBKey*); |
+IDBKey* createKey(const indexed_db::mojom::blink::KeyPtr&); |
+indexed_db::mojom::blink::KeyRangePtr createKeyRange(ExecutionContext*, const ScriptValue&, ExceptionState&); |
+indexed_db::mojom::blink::KeyRangePtr createKeyRange(const IDBKeyRange*); |
+indexed_db::mojom::blink::BlobInfoPtr createBlobInfo(const WebBlobInfo&); |
+Vector<indexed_db::mojom::blink::BlobInfoPtr> createBlobInfo(const Vector<WebBlobInfo>&); |
+PassRefPtr<SharedBuffer> createData(const WTF::Vector<int8_t>& data); |
+PassRefPtr<SharedBuffer> createData(const WTF::Vector<uint8_t>& data); |
+void convertMetadata(IDBDatabaseMetadata*, const indexed_db::mojom::blink::DatabaseMetadataPtr&); |
+ |
+} // namespace blink |
+ |
+#endif // IDBMojoUtil_h |