| 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 0c609debf6f5fe636c41a365e4b04f7070751a25..fde5981aa23177adeec8937882324abb9e4f30da 100644
|
| --- a/third_party/WebKit/Source/modules/indexeddb/IDBRequest.h
|
| +++ b/third_party/WebKit/Source/modules/indexeddb/IDBRequest.h
|
| @@ -89,6 +89,10 @@ public:
|
|
|
| const String& readyState() const;
|
|
|
| + // Returns a new WebIDBCallbacks for this request. Must only be called once.
|
| + std::unique_ptr<WebIDBCallbacks> createWebCallbacks();
|
| + void webCallbacksDestroyed();
|
| +
|
| DEFINE_ATTRIBUTE_EVENT_LISTENER(success);
|
| DEFINE_ATTRIBUTE_EVENT_LISTENER(error);
|
|
|
| @@ -115,7 +119,7 @@ public:
|
| bool hasPendingActivity() const final;
|
|
|
| // ActiveDOMObject
|
| - void stop() final;
|
| + void stop() override;
|
|
|
| // EventTarget
|
| const AtomicString& interfaceName() const override;
|
| @@ -171,6 +175,10 @@ private:
|
| bool m_didFireUpgradeNeededEvent = false;
|
| bool m_preventPropagation = false;
|
| bool m_resultDirty = true;
|
| +
|
| + // Pointer back to the WebIDBCallbacks that holds a persistent reference to
|
| + // this object.
|
| + WebIDBCallbacks* m_webCallbacks = nullptr;
|
| };
|
|
|
| } // namespace blink
|
|
|