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) |
{ |
} |