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

Unified Diff: content/common/indexed_db/indexed_db_messages.h

Issue 17033004: Tell IDB frontend about data loss (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ToT 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 | « content/child/indexed_db/indexed_db_dispatcher.cc ('k') | content/test/data/indexeddb/open_bad_db.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/indexed_db/indexed_db_messages.h
diff --git a/content/common/indexed_db/indexed_db_messages.h b/content/common/indexed_db/indexed_db_messages.h
index c1138c4655fdc0a5c7456fa1e2636062e908789c..a79bb28ab8e7fd446e6d8b2ec5dd6cd641c0a094 100644
--- a/content/common/indexed_db/indexed_db_messages.h
+++ b/content/common/indexed_db/indexed_db_messages.h
@@ -24,6 +24,9 @@ IPC_ENUM_TRAITS(WebKit::WebIDBCursor::Direction)
IPC_ENUM_TRAITS(WebKit::WebIDBDatabase::PutMode)
IPC_ENUM_TRAITS(WebKit::WebIDBDatabase::TaskType)
+IPC_ENUM_TRAITS_MAX_VALUE(WebKit::WebIDBCallbacks::DataLoss,
+ WebKit::WebIDBCallbacks::DataLossTotal)
+
// Used to enumerate indexed databases.
IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryGetDatabaseNames_Params)
// The response should have these ids.
@@ -287,6 +290,7 @@ IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksUpgradeNeeded_Params)
IPC_STRUCT_MEMBER(int32, ipc_database_callbacks_id)
IPC_STRUCT_MEMBER(int32, ipc_database_id)
IPC_STRUCT_MEMBER(int64, old_version)
+ IPC_STRUCT_MEMBER(WebKit::WebIDBCallbacks::DataLoss, data_loss)
IPC_STRUCT_MEMBER(IndexedDBDatabaseMetadata, idb_metadata)
IPC_STRUCT_END()
« no previous file with comments | « content/child/indexed_db/indexed_db_dispatcher.cc ('k') | content/test/data/indexeddb/open_bad_db.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698