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

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

Issue 1963293002: Replacing Indexed DB Chromium IPC with Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some (incomplete) work on struct traits. Created 4 years, 5 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/IDBValue.h
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBValue.h b/third_party/WebKit/Source/modules/indexeddb/IDBValue.h
index 86f456310f5d8b4b6e4cd565f1d1977bd381e742..44d5ef1713463664f1ae8ae0fbf93dd871a3e446 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBValue.h
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBValue.h
@@ -10,6 +10,7 @@
#include "modules/indexeddb/IDBKeyPath.h"
#include "platform/SharedBuffer.h"
#include "public/platform/WebVector.h"
+#include "public/platform/modules/indexeddb/indexed_db.mojom-blink.h"
#include "wtf/RefPtr.h"
#include <memory>
@@ -17,12 +18,11 @@ namespace blink {
class BlobDataHandle;
class WebBlobInfo;
-struct WebIDBValue;
class MODULES_EXPORT IDBValue final : public RefCounted<IDBValue> {
public:
static PassRefPtr<IDBValue> create();
- static PassRefPtr<IDBValue> create(const WebIDBValue&);
+ static PassRefPtr<IDBValue> create(indexed_db::mojom::blink::ValuePtr);
static PassRefPtr<IDBValue> create(const IDBValue*, IDBKey*, const IDBKeyPath&);
~IDBValue();
@@ -35,9 +35,10 @@ public:
private:
IDBValue();
- IDBValue(const WebIDBValue&);
+ IDBValue(const indexed_db::mojom::blink::ValuePtr);
IDBValue(PassRefPtr<SharedBuffer>, const WebVector<WebBlobInfo>&, IDBKey*, const IDBKeyPath&);
IDBValue(const IDBValue*, IDBKey*, const IDBKeyPath&);
+ void setBlobData(const WebVector<WebBlobInfo>&);
const RefPtr<SharedBuffer> m_data;
const std::unique_ptr<Vector<RefPtr<BlobDataHandle>>> m_blobData;

Powered by Google App Engine
This is Rietveld 408576698