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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBMojoUtil.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/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

Powered by Google App Engine
This is Rietveld 408576698