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

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

Issue 2822453003: Wrap large IndexedDB values into Blobs before writing to LevelDB. (Closed)
Patch Set: Created 3 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: third_party/WebKit/Source/modules/indexeddb/IDBRequest.h
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBRequest.h b/third_party/WebKit/Source/modules/indexeddb/IDBRequest.h
index 80ad1354c464a66da3832f8f29f7b74a9a6361e0..084beabc5bb47c12c1841a250bc34625791b3a2f 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBRequest.h
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBRequest.h
@@ -29,6 +29,7 @@
#ifndef IDBRequest_h
#define IDBRequest_h
+#include <memory>
#include "bindings/core/v8/ActiveScriptWrappable.h"
#include "bindings/core/v8/ScriptState.h"
#include "bindings/core/v8/ScriptValue.h"
@@ -39,6 +40,7 @@
#include "modules/EventModules.h"
#include "modules/ModulesExport.h"
#include "modules/indexeddb/IDBAny.h"
+#include "modules/indexeddb/IDBRequestLoader.h"
#include "modules/indexeddb/IDBTransaction.h"
#include "modules/indexeddb/IndexedDB.h"
#include "platform/blob/BlobData.h"
@@ -46,7 +48,6 @@
#include "public/platform/WebBlobInfo.h"
#include "public/platform/modules/indexeddb/WebIDBCursor.h"
#include "public/platform/modules/indexeddb/WebIDBTypes.h"
-#include <memory>
namespace blink {
@@ -54,6 +55,7 @@ class DOMException;
class ExceptionState;
class IDBCursor;
struct IDBDatabaseMetadata;
+class IDBRequestLoader;
class IDBValue;
class MODULES_EXPORT IDBRequest : public EventTargetWithInlineData,
@@ -187,6 +189,9 @@ class MODULES_EXPORT IDBRequest : public EventTargetWithInlineData,
Member<IDBKey> cursor_primary_key_;
RefPtr<IDBValue> cursor_value_;
+ // Used to unwrap Blob-wrapped IDBValues.
+ Member<IDBRequestLoader> loader_;
+
bool did_fire_upgrade_needed_event_ = false;
bool prevent_propagation_ = false;
bool result_dirty_ = true;

Powered by Google App Engine
This is Rietveld 408576698