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

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

Issue 2062203004: IDBObserver: Lifetime Management: Adding Observer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Observer moved to connection Created 4 years, 6 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/IDBObserver.h
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBObserver.h b/third_party/WebKit/Source/modules/indexeddb/IDBObserver.h
index 16f38a2743d4e68fa79548aefa0dd05e17e557bb..3f774a74619e9b0e28bcbd8fcaaed0514b15329a 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBObserver.h
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBObserver.h
@@ -9,6 +9,7 @@
#include "modules/indexeddb/IDBDatabase.h"
#include "modules/indexeddb/IDBTransaction.h"
#include "platform/heap/Handle.h"
+#include "wtf/RefPtr.h"
namespace blink {
@@ -23,11 +24,12 @@ public:
~IDBObserver();
// API methods
void observe(IDBDatabase*, IDBTransaction*, ExceptionState&);
+ void unobserve(IDBDatabase*, ExceptionState&);
DECLARE_TRACE();
private:
- explicit IDBObserver(IDBObserverCallback&, const IDBObserverInit&);
+ IDBObserver(IDBObserverCallback&, const IDBObserverInit&);
Member<IDBObserverCallback> m_callback;
bool m_transaction;

Powered by Google App Engine
This is Rietveld 408576698