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

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: 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/renderer/indexed_db_dispatcher.cc ('k') | content/renderer/renderer_webidbcursor_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..fbca6b293efc5963d0085a7121d1e40268a9b716 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_
« no previous file with comments | « content/renderer/indexed_db_dispatcher.cc ('k') | content/renderer/renderer_webidbcursor_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698