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

Unified Diff: content/renderer/renderer_webidbcursor_impl.h

Issue 8400061: IndexedDB: Recycle cursor objects when calling continue(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: New version Created 9 years, 2 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/renderer/renderer_webidbcursor_impl.h
diff --git a/content/renderer/renderer_webidbcursor_impl.h b/content/renderer/renderer_webidbcursor_impl.h
index bb1c1658dd4bd81befe86056d5b538b55bee2e39..ca0e08ff875edc71e9f0732ea71abc036f1e6118 100644
--- a/content/renderer/renderer_webidbcursor_impl.h
+++ b/content/renderer/renderer_webidbcursor_impl.h
@@ -15,9 +15,7 @@
class RendererWebIDBCursorImpl : public WebKit::WebIDBCursor {
public:
- RendererWebIDBCursorImpl(int32 idb_cursor_id, const IndexedDBKey& key,
- const IndexedDBKey& primary_key,
- const content::SerializedScriptValue& value);
+ RendererWebIDBCursorImpl(int32 idb_cursor_id);
virtual ~RendererWebIDBCursorImpl();
virtual unsigned short direction() const;
@@ -33,11 +31,14 @@ class RendererWebIDBCursorImpl : public WebKit::WebIDBCursor {
virtual void deleteFunction(WebKit::WebIDBCallbacks* callback,
WebKit::WebExceptionCode& ec);
+ void setKeyAndValue(const IndexedDBKey& key, const IndexedDBKey& primary_key,
+ const content::SerializedScriptValue& value);
+
private:
int32 idb_cursor_id_;
- const IndexedDBKey key_;
- const IndexedDBKey primary_key_;
- const content::SerializedScriptValue value_;
+ IndexedDBKey key_;
+ IndexedDBKey primary_key_;
+ content::SerializedScriptValue value_;
};
#endif // CONTENT_RENDERER_RENDERER_WEBIDBCURSOR_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698