Index: content/common/indexed_db/indexed_db_dispatcher.h |
diff --git a/content/common/indexed_db/indexed_db_dispatcher.h b/content/common/indexed_db/indexed_db_dispatcher.h |
index 03fa7de860efddbc9d4904f3a6dbc4feceafbf75..5d88f59eaff511af54ea894dee02cbe5377507ba 100644 |
--- a/content/common/indexed_db/indexed_db_dispatcher.h |
+++ b/content/common/indexed_db/indexed_db_dispatcher.h |
@@ -24,6 +24,7 @@ struct IndexedDBMsg_CallbacksSuccessCursorContinue_Params; |
struct IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params; |
struct IndexedDBMsg_CallbacksSuccessIDBCursor_Params; |
class RendererWebIDBCursorImpl; |
+class RendererWebIDBDatabaseImpl; |
namespace IPC { |
class Message; |
@@ -69,6 +70,7 @@ class CONTENT_EXPORT IndexedDBDispatcher |
void RequestIDBFactoryOpen( |
const string16& name, |
+ int64 version, |
WebKit::WebIDBCallbacks* callbacks, |
const string16& origin, |
WebKit::WebFrame* web_frame); |
@@ -212,6 +214,7 @@ class CONTENT_EXPORT IndexedDBDispatcher |
int32 id); |
void CursorDestroyed(int32 cursor_id); |
+ void DatabaseDestroyed(int32 database_id); |
static int32 TransactionId(const WebKit::WebIDBTransaction& transaction); |
@@ -247,11 +250,21 @@ class CONTENT_EXPORT IndexedDBDispatcher |
int code, |
const string16& message); |
void OnBlocked(int32 thread_id, int32 response_id); |
+ void OnIntBlocked(int32 thread_id, int32 response_id, int64 existing_version); |
void OnAbort(int32 thread_id, int32 transaction_id); |
void OnComplete(int32 thread_id, int32 transaction_id); |
void OnVersionChange(int32 thread_id, |
int32 database_id, |
const string16& newVersion); |
+ void OnIntVersionChange(int32 thread_id, |
+ int32 database_id, |
+ int64 old_version, |
+ int64 new_version); |
+ void OnUpgradeNeeded(int32 thread_id, |
jsbell
2012/07/25 22:12:16
Should group with other events headed back to an a
dgrogan
2012/07/25 23:59:59
Done.
|
+ int32 response_id, |
+ int32 transaction_id, |
+ int32 database_id, |
+ int64 old_version); |
// Reset cursor prefetch caches for all cursors except exception_cursor_id. |
void ResetCursorPrefetchCaches(int32 exception_cursor_id = -1); |
@@ -267,6 +280,8 @@ class CONTENT_EXPORT IndexedDBDispatcher |
// Map from cursor id to RendererWebIDBCursorImpl. |
std::map<int32, RendererWebIDBCursorImpl*> cursors_; |
+ std::map<int32, RendererWebIDBDatabaseImpl*> databases_; |
+ |
DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); |
}; |