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

Unified Diff: content/renderer/indexed_db_dispatcher.h

Issue 8400061: IndexedDB: Recycle cursor objects when calling continue(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More style nits fixed Created 9 years, 1 month 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/common/indexed_db_messages.h ('k') | content/renderer/indexed_db_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/indexed_db_dispatcher.h
diff --git a/content/renderer/indexed_db_dispatcher.h b/content/renderer/indexed_db_dispatcher.h
index e30fa95df5003552bab12d521b3746b69229568f..d779454d308578c1901ecb3ea63411e61f7fd95c 100644
--- a/content/renderer/indexed_db_dispatcher.h
+++ b/content/renderer/indexed_db_dispatcher.h
@@ -6,6 +6,8 @@
#define CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_
#pragma once
+#include <map>
+
#include "base/id_map.h"
#include "base/nullable_string16.h"
#include "ipc/ipc_channel.h"
@@ -16,6 +18,7 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBTransactionCallbacks.h"
class IndexedDBKey;
+class RendererWebIDBCursorImpl;
namespace WebKit {
class WebDOMStringList;
@@ -151,6 +154,8 @@ class IndexedDBDispatcher : public IPC::Channel::Listener {
WebKit::WebIDBTransactionCallbacks* callbacks,
int32 id);
+ void CursorDestroyed(int32 cursor_id);
+
static int32 TransactionId(const WebKit::WebIDBTransaction& transaction);
private:
@@ -163,6 +168,11 @@ class IndexedDBDispatcher : public IPC::Channel::Listener {
const IndexedDBKey& key,
const IndexedDBKey& primary_key,
const content::SerializedScriptValue& value);
+ void OnSuccessCursorContinue(int32 response_id,
+ int32 cursor_id,
+ const IndexedDBKey& key,
+ const IndexedDBKey& primary_key,
+ const content::SerializedScriptValue& value);
void OnSuccessStringList(int32 response_id,
const std::vector<string16>& value);
void OnSuccessSerializedScriptValue(
@@ -182,6 +192,9 @@ class IndexedDBDispatcher : public IPC::Channel::Listener {
IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer>
pending_database_callbacks_;
+ // Map from cursor id to RendererWebIDBCursorImpl.
+ std::map<int32, RendererWebIDBCursorImpl*> cursors_;
+
DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher);
};
« no previous file with comments | « content/common/indexed_db_messages.h ('k') | content/renderer/indexed_db_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698