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

Unified Diff: Source/modules/indexeddb/IDBAny.cpp

Issue 235933013: Add the backchannel for Blobs to be received into Blink from the database backend. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix oilpan type merge Created 6 years, 8 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
« no previous file with comments | « Source/modules/indexeddb/IDBAny.h ('k') | Source/modules/indexeddb/IDBCursor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBAny.cpp
diff --git a/Source/modules/indexeddb/IDBAny.cpp b/Source/modules/indexeddb/IDBAny.cpp
index 0a8c65af88785dc60e9b3372b77474adaaf0016e..c16175ec9d8171924a9969986d9fdc771efe22c4 100644
--- a/Source/modules/indexeddb/IDBAny.cpp
+++ b/Source/modules/indexeddb/IDBAny.cpp
@@ -128,6 +128,12 @@ SharedBuffer* IDBAny::buffer() const
return m_buffer.get();
}
+const Vector<blink::WebBlobInfo>* IDBAny::blobInfo() const
+{
+ ASSERT(m_type == BufferType || m_type == BufferKeyAndKeyPathType);
+ return m_blobInfo;
+}
+
const String& IDBAny::string() const
{
ASSERT(m_type == StringType);
@@ -182,18 +188,20 @@ IDBAny::IDBAny(PassRefPtr<IDBObjectStore> value)
{
}
-IDBAny::IDBAny(PassRefPtr<SharedBuffer> value)
+IDBAny::IDBAny(PassRefPtr<SharedBuffer> value, const Vector<blink::WebBlobInfo>* blobInfo)
: m_type(BufferType)
, m_buffer(value)
+ , m_blobInfo(blobInfo)
, m_integer(0)
{
}
-IDBAny::IDBAny(PassRefPtr<SharedBuffer> value, PassRefPtr<IDBKey> key, const IDBKeyPath& keyPath)
+IDBAny::IDBAny(PassRefPtr<SharedBuffer> value, const Vector<blink::WebBlobInfo>* blobInfo, PassRefPtr<IDBKey> key, const IDBKeyPath& keyPath)
: m_type(BufferKeyAndKeyPathType)
, m_idbKey(key)
, m_idbKeyPath(keyPath)
, m_buffer(value)
+ , m_blobInfo(blobInfo)
, m_integer(0)
{
}
« no previous file with comments | « Source/modules/indexeddb/IDBAny.h ('k') | Source/modules/indexeddb/IDBCursor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698