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

Unified Diff: content/browser/in_process_webkit/indexed_db_callbacks.h

Issue 17033004: Tell IDB frontend about data loss (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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: content/browser/in_process_webkit/indexed_db_callbacks.h
diff --git a/content/browser/in_process_webkit/indexed_db_callbacks.h b/content/browser/in_process_webkit/indexed_db_callbacks.h
index a9f266a804e2bf671cf689f80a4438be7a62775a..accb5741ed22dad3da306015e9b8c7081372fb2a 100644
--- a/content/browser/in_process_webkit/indexed_db_callbacks.h
+++ b/content/browser/in_process_webkit/indexed_db_callbacks.h
@@ -31,7 +31,8 @@ class IndexedDBCallbacksBase {
const IndexedDBDatabaseMetadata& metadata);
virtual void onUpgradeNeeded(long long old_version,
WebIDBDatabaseImpl* database,
- const IndexedDBDatabaseMetadata&);
+ const IndexedDBDatabaseMetadata&,
+ bool data_loss);
virtual void onSuccess(WebIDBCursorImpl* idb_object,
const IndexedDBKey& key,
const IndexedDBKey& primaryKey,
@@ -89,7 +90,8 @@ class IndexedDBCallbacksDatabase : public IndexedDBCallbacksBase {
const IndexedDBDatabaseMetadata& metadata) OVERRIDE;
virtual void onUpgradeNeeded(long long old_version,
WebIDBDatabaseImpl* database,
- const IndexedDBDatabaseMetadata&) OVERRIDE;
+ const IndexedDBDatabaseMetadata&,
+ bool data_loss) OVERRIDE;
private:
int64 host_transaction_id_;

Powered by Google App Engine
This is Rietveld 408576698