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

Unified Diff: Source/modules/indexeddb/IDBCursor.h

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: Remove accidentally-included files 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
Index: Source/modules/indexeddb/IDBCursor.h
diff --git a/Source/modules/indexeddb/IDBCursor.h b/Source/modules/indexeddb/IDBCursor.h
index 53304bd0aaf18e0f547cfb6fb3c26e3774e76b69..4ea26d107c8596e3cdc5ec7bf6f51c46ae015fe4 100644
--- a/Source/modules/indexeddb/IDBCursor.h
+++ b/Source/modules/indexeddb/IDBCursor.h
@@ -36,6 +36,12 @@
#include "wtf/RefCounted.h"
#include "wtf/RefPtr.h"
+namespace blink {
+
+class WebBlobInfo;
+
+} // namespace blink
+
namespace WebCore {
class ExceptionState;
@@ -78,7 +84,7 @@ public:
void postSuccessHandlerCallback();
bool isDeleted() const;
void close();
- void setValueReady(PassRefPtr<IDBKey>, PassRefPtr<IDBKey> primaryKey, PassRefPtr<SharedBuffer> value);
+ void setValueReady(PassRefPtr<IDBKey>, PassRefPtr<IDBKey> primaryKey, PassRefPtr<SharedBuffer> value, PassOwnPtr<Vector<blink::WebBlobInfo> >);
PassRefPtr<IDBKey> idbPrimaryKey() const { return m_primaryKey; }
IDBRequest* request() const { return m_request.get(); }
virtual bool isKeyCursor() const { return true; }
@@ -99,6 +105,7 @@ private:
PassRefPtr<IDBObjectStore> effectiveObjectStore() const;
void checkForReferenceCycle();
+ void handleBlobAcks();
OwnPtr<blink::WebIDBCursor> m_backend;
RefPtr<IDBRequest> m_request;
@@ -112,6 +119,7 @@ private:
RefPtr<IDBKey> m_key;
RefPtr<IDBKey> m_primaryKey;
RefPtr<SharedBuffer> m_value;
+ OwnPtr<Vector<blink::WebBlobInfo> > m_blobInfo;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698