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

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: Add blink API stub for compatibility with and without chromium changes 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
« no previous file with comments | « Source/modules/indexeddb/IDBOpenDBRequest.cpp ('k') | Source/modules/indexeddb/IDBVersionChangeEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBVersionChangeEvent.h
diff --git a/Source/modules/indexeddb/IDBVersionChangeEvent.h b/Source/modules/indexeddb/IDBVersionChangeEvent.h
index 7c9765a1b5bcb64e331a6d12cec50101a6d460da..d80d9bec0134a0c3161bbf640f84b6789c660990 100644
--- a/Source/modules/indexeddb/IDBVersionChangeEvent.h
+++ b/Source/modules/indexeddb/IDBVersionChangeEvent.h
@@ -28,6 +28,7 @@
#include "core/dom/Event.h"
#include "modules/indexeddb/IDBAny.h"
+#include "public/platform/WebIDBCallbacks.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefPtr.h"
#include "wtf/text/WTFString.h"
@@ -36,19 +37,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(), WebKit::WebIDBCallbacks::DataLoss = WebKit::WebIDBCallbacks::DataLossNone);
virtual ~IDBVersionChangeEvent();
virtual PassRefPtr<IDBAny> oldVersion() { return m_oldVersion; }
virtual PassRefPtr<IDBAny> newVersion() { return m_newVersion; }
+ virtual const AtomicString& 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, WebKit::WebIDBCallbacks::DataLoss);
RefPtr<IDBAny> m_oldVersion;
RefPtr<IDBAny> m_newVersion;
+ bool m_dataLoss;
};
} // namespace WebCore
« no previous file with comments | « Source/modules/indexeddb/IDBOpenDBRequest.cpp ('k') | Source/modules/indexeddb/IDBVersionChangeEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698