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

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

Issue 10829013: Chrome side changes for integer versions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add #include that windows needs Created 8 years, 5 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/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..f9a5a42c17747056ac305a95aeafb2928d59a657 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 OnUpgradeNeeded(int32 thread_id,
+ int32 response_id,
+ int32 transaction_id,
+ int32 database_id,
+ int64 old_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);
// 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);
};
« no previous file with comments | « content/browser/in_process_webkit/indexed_db_dispatcher_host.cc ('k') | content/common/indexed_db/indexed_db_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698