Index: public/platform/WebIDBCallbacks.h |
diff --git a/public/platform/WebIDBCallbacks.h b/public/platform/WebIDBCallbacks.h |
index d70e5f4e27f857c104247d3c98d7251150258cb5..c2fa984ae59527f94915e1b66e5fed4c461765e7 100644 |
--- a/public/platform/WebIDBCallbacks.h |
+++ b/public/platform/WebIDBCallbacks.h |
@@ -45,6 +45,11 @@ class WebIDBCallbacks { |
public: |
virtual ~WebIDBCallbacks() { } |
+ enum DataLoss { |
+ None = 0, |
jsbell
2013/06/17 23:16:29
Probably want to name the members DataLossNone/Dat
dgrogan
2013/06/17 23:52:14
Done.
|
+ Total = 1 |
+ }; |
+ |
// For classes that follow the PImpl pattern, pass a const reference. |
// For the rest, pass ownership to the callee via a pointer. |
virtual void onError(const WebIDBDatabaseError&) { WEBKIT_ASSERT_NOT_REACHED(); } |
@@ -61,7 +66,7 @@ public: |
// FIXME: Remove the following overload once callers are updated: |
virtual void onBlocked() { WEBKIT_ASSERT_NOT_REACHED(); } |
virtual void onBlocked(long long oldVersion) { WEBKIT_ASSERT_NOT_REACHED(); } |
- virtual void onUpgradeNeeded(long long oldVersion, WebIDBDatabase*, const WebIDBMetadata&) { WEBKIT_ASSERT_NOT_REACHED(); } |
+ virtual void onUpgradeNeeded(long long oldVersion, WebIDBDatabase*, const WebIDBMetadata&, DataLoss dataLoss) { WEBKIT_ASSERT_NOT_REACHED(); } |
}; |
} // namespace WebKit |