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

Unified Diff: content/renderer/renderer_webidbcursor_impl.cc

Issue 7692006: IndexedDB API cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright presubmit Created 9 years, 4 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
« no previous file with comments | « content/renderer/renderer_webidbcursor_impl.h ('k') | content/renderer/renderer_webidbdatabase_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_webidbcursor_impl.cc
diff --git a/content/renderer/renderer_webidbcursor_impl.cc b/content/renderer/renderer_webidbcursor_impl.cc
index 21332e1db405e317b7063f0a995eb0e4177261ca..2e20cd5421f4ef241e80cb30cd7ba3844173b845 100644
--- a/content/renderer/renderer_webidbcursor_impl.cc
+++ b/content/renderer/renderer_webidbcursor_impl.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -47,18 +47,11 @@ WebIDBKey RendererWebIDBCursorImpl::primaryKey() const {
return primaryKey;
}
-void RendererWebIDBCursorImpl::value(
- WebSerializedScriptValue& webScriptValue,
- WebIDBKey& webKey) const {
+WebSerializedScriptValue RendererWebIDBCursorImpl::value() const {
SerializedScriptValue scriptValue;
- IndexedDBKey key;
RenderThread::current()->Send(
- new IndexedDBHostMsg_CursorValue(idb_cursor_id_, &scriptValue,
- &key));
- // Only one or the other type should have been "returned" to us.
- DCHECK(scriptValue.is_null() != (key.type() == WebIDBKey::InvalidType));
- webScriptValue = scriptValue;
- webKey = key;
+ new IndexedDBHostMsg_CursorValue(idb_cursor_id_, &scriptValue));
+ return scriptValue;
}
void RendererWebIDBCursorImpl::update(const WebSerializedScriptValue& value,
@@ -79,8 +72,8 @@ void RendererWebIDBCursorImpl::continueFunction(const WebIDBKey& key,
idb_cursor_id_, &ec);
}
-void RendererWebIDBCursorImpl::remove(WebIDBCallbacks* callbacks,
- WebExceptionCode& ec) {
+void RendererWebIDBCursorImpl::deleteFunction(WebIDBCallbacks* callbacks,
+ WebExceptionCode& ec) {
IndexedDBDispatcher* dispatcher =
RenderThread::current()->indexed_db_dispatcher();
dispatcher->RequestIDBCursorDelete(callbacks, idb_cursor_id_, &ec);
« no previous file with comments | « content/renderer/renderer_webidbcursor_impl.h ('k') | content/renderer/renderer_webidbdatabase_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698