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

Unified Diff: content/child/indexed_db/proxy_webidbcursor_impl.cc

Issue 19752007: Use builders to convert between WebKit and content IDB types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/child/indexed_db/proxy_webidbcursor_impl.cc
diff --git a/content/child/indexed_db/proxy_webidbcursor_impl.cc b/content/child/indexed_db/proxy_webidbcursor_impl.cc
index 2343880de17cdd6b9a3bdf24875e246a3b631f9a..0907647a7f4dcecb06568fce49c77102b3c31bf1 100644
--- a/content/child/indexed_db/proxy_webidbcursor_impl.cc
+++ b/content/child/indexed_db/proxy_webidbcursor_impl.cc
@@ -8,6 +8,7 @@
#include "content/child/thread_safe_sender.h"
#include "content/child/indexed_db/indexed_db_dispatcher.h"
+#include "content/child/indexed_db/indexed_db_key_builders.h"
#include "content/common/indexed_db/indexed_db_messages.h"
using WebKit::WebData;
@@ -88,7 +89,7 @@ void RendererWebIDBCursorImpl::continueFunction(
}
dispatcher->RequestIDBCursorContinue(
- IndexedDBKey(key), callbacks.release(), ipc_cursor_id_);
+ IndexedDBKeyBuilder::Build(key), callbacks.release(), ipc_cursor_id_);
}
void RendererWebIDBCursorImpl::postSuccessHandlerCallback() {
@@ -133,7 +134,8 @@ void RendererWebIDBCursorImpl::CachedContinue(WebIDBCallbacks* callbacks) {
pending_onsuccess_callbacks_++;
- callbacks->onSuccess(key, primary_key, value);
+ callbacks->onSuccess(WebIDBKeyBuilder::Build(key),
+ WebIDBKeyBuilder::Build(primary_key), value);
}
void RendererWebIDBCursorImpl::ResetPrefetchCache() {
« no previous file with comments | « content/child/indexed_db/indexed_db_key_builders.cc ('k') | content/child/indexed_db/proxy_webidbcursor_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698