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

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

Issue 17060008: Add dataLoss property to IDB's upgradeneeded event (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove debug Created 7 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: Source/modules/indexeddb/IDBVersionChangeEvent.h
diff --git a/Source/modules/indexeddb/IDBVersionChangeEvent.h b/Source/modules/indexeddb/IDBVersionChangeEvent.h
index 7c9765a1b5bcb64e331a6d12cec50101a6d460da..1e2e0dc1395c01899f3f719eee26d867174dd910 100644
--- a/Source/modules/indexeddb/IDBVersionChangeEvent.h
+++ b/Source/modules/indexeddb/IDBVersionChangeEvent.h
@@ -36,19 +36,21 @@ namespace WebCore {
class IDBVersionChangeEvent : public Event {
public:
- static PassRefPtr<IDBVersionChangeEvent> create(PassRefPtr<IDBAny> oldVersion = IDBAny::createNull(), PassRefPtr<IDBAny> newVersion = IDBAny::createNull(), const AtomicString& eventType = AtomicString());
+ static PassRefPtr<IDBVersionChangeEvent> create(PassRefPtr<IDBAny> oldVersion = IDBAny::createNull(), PassRefPtr<IDBAny> newVersion = IDBAny::createNull(), const AtomicString& eventType = AtomicString(), bool dataLoss = 0);
virtual ~IDBVersionChangeEvent();
virtual PassRefPtr<IDBAny> oldVersion() { return m_oldVersion; }
virtual PassRefPtr<IDBAny> newVersion() { return m_newVersion; }
+ virtual String dataLoss();
virtual const AtomicString& interfaceName() const;
private:
- IDBVersionChangeEvent(PassRefPtr<IDBAny> oldVersion, PassRefPtr<IDBAny> newVersion, const AtomicString& eventType);
+ IDBVersionChangeEvent(PassRefPtr<IDBAny> oldVersion, PassRefPtr<IDBAny> newVersion, const AtomicString& eventType, bool dataLoss);
RefPtr<IDBAny> m_oldVersion;
RefPtr<IDBAny> m_newVersion;
+ bool m_dataLoss;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698