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

Unified Diff: content/browser/indexed_db/indexed_db_database.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
Index: content/browser/indexed_db/indexed_db_database.h
diff --git a/content/browser/indexed_db/indexed_db_database.h b/content/browser/indexed_db/indexed_db_database.h
index bc03564f2b95ae37468c28c1e1fd7ed8786b0613..36300eefeb257e7d2ddfc422227cf128182021b3 100644
--- a/content/browser/indexed_db/indexed_db_database.h
+++ b/content/browser/indexed_db/indexed_db_database.h
@@ -68,6 +68,12 @@ class CONTENT_EXPORT IndexedDBDatabase
scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks,
int64 transaction_id,
int64 version);
+ void OpenConnection(
+ scoped_refptr<IndexedDBCallbacksWrapper> callbacks,
+ scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks,
+ int64 transaction_id,
+ int64 version,
+ WebKit::WebIDBCallbacks::DataLoss data_loss);
void DeleteDatabase(scoped_refptr<IndexedDBCallbacksWrapper> callbacks);
const IndexedDBDatabaseMetadata& metadata() const { return metadata_; }
@@ -164,12 +170,19 @@ class CONTENT_EXPORT IndexedDBDatabase
scoped_refptr<IndexedDBCallbacksWrapper> callbacks,
scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks,
int64 transaction_id,
- int64 requested_version);
+ int64 requested_version,
+ WebKit::WebIDBCallbacks::DataLoss data_loss);
void RunVersionChangeTransactionFinal(
scoped_refptr<IndexedDBCallbacksWrapper> callbacks,
scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks,
int64 transaction_id,
int64 requested_version);
+ void RunVersionChangeTransactionFinal(
+ scoped_refptr<IndexedDBCallbacksWrapper> callbacks,
+ scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks,
+ int64 transaction_id,
+ int64 requested_version,
+ WebKit::WebIDBCallbacks::DataLoss data_loss);
size_t ConnectionCount() const;
void ProcessPendingCalls();

Powered by Google App Engine
This is Rietveld 408576698