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

Side by Side 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698