OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IDBMojoUtil_h |
| 6 #define IDBMojoUtil_h |
| 7 |
| 8 #include "Source/modules/indexeddb/indexed_db.mojom-blink.h" |
| 9 #include "public/platform/modules/indexeddb/WebIDBValue.h" |
| 10 #include "wtf/Vector.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 class ExceptionState; |
| 15 class ExecutionContext; |
| 16 struct IDBDatabaseMetadata; |
| 17 class IDBKey; |
| 18 class IDBKeyPath; |
| 19 class IDBKeyRange; |
| 20 class ScriptValue; |
| 21 class WebBlobInfo; |
| 22 class WebSecurityOrigin; |
| 23 |
| 24 WebIDBValue createValue(const indexed_db::mojom::blink::ValuePtr&); |
| 25 indexed_db::mojom::blink::KeyPathPtr createKeyPath(const IDBKeyPath&); |
| 26 IDBKeyPath createKeyPath(const indexed_db::mojom::blink::KeyPathPtr&); |
| 27 indexed_db::mojom::blink::KeyPtr createKey(const IDBKey*); |
| 28 IDBKey* createKey(const indexed_db::mojom::blink::KeyPtr&); |
| 29 indexed_db::mojom::blink::KeyRangePtr createKeyRange(ExecutionContext*, const Sc
riptValue&, ExceptionState&); |
| 30 indexed_db::mojom::blink::KeyRangePtr createKeyRange(const IDBKeyRange*); |
| 31 indexed_db::mojom::blink::BlobInfoPtr createBlobInfo(const WebBlobInfo&); |
| 32 Vector<indexed_db::mojom::blink::BlobInfoPtr> createBlobInfo(const Vector<WebBlo
bInfo>&); |
| 33 PassRefPtr<SharedBuffer> createData(const WTF::Vector<int8_t>& data); |
| 34 PassRefPtr<SharedBuffer> createData(const WTF::Vector<uint8_t>& data); |
| 35 void convertMetadata(IDBDatabaseMetadata*, const indexed_db::mojom::blink::Datab
aseMetadataPtr&); |
| 36 |
| 37 } // namespace blink |
| 38 |
| 39 #endif // IDBMojoUtil_h |
OLD | NEW |