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

Unified Diff: content/common/indexed_db/indexed_db_dispatcher.cc

Issue 10831138: Remove a ton of IPC from landing putWithIndexKeys (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Additional stuff found with lint Created 8 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/common/indexed_db/indexed_db_dispatcher.cc
diff --git a/content/common/indexed_db/indexed_db_dispatcher.cc b/content/common/indexed_db/indexed_db_dispatcher.cc
index e689a77ac87d7c76d7dd661d0ce3bb7ba18f546e..30e54fae6a715026e7c2900518b403a148bf4f35 100644
--- a/content/common/indexed_db/indexed_db_dispatcher.cc
+++ b/content/common/indexed_db/indexed_db_dispatcher.cc
@@ -48,8 +48,7 @@ IndexedDBDispatcher* const kHasBeenDeleted =
int32 CurrentWorkerId() {
return WorkerTaskRunner::Instance()->CurrentWorkerId();
}
-
-} // unnamed namespace
+} // unnamed namespace
const size_t kMaxIDBValueSizeInBytes = 64 * 1024 * 1024;
@@ -129,26 +128,6 @@ bool IndexedDBDispatcher::Send(IPC::Message* msg) {
return ChildThread::current()->Send(msg);
}
-void IndexedDBDispatcher::RequestIDBCursorUpdate(
- const SerializedScriptValue& value,
- WebIDBCallbacks* callbacks_ptr,
- int32 idb_cursor_id,
- WebExceptionCode* ec) {
- ResetCursorPrefetchCaches();
- scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr);
- if (!value.is_null() &&
- (value.data().length() * sizeof(char16)) > kMaxIDBValueSizeInBytes) {
- *ec = WebKit::WebIDBDatabaseExceptionDataError;
- return;
- }
- int32 response_id = pending_callbacks_.Add(callbacks.release());
- Send(
- new IndexedDBHostMsg_CursorUpdate(idb_cursor_id, CurrentWorkerId(),
- response_id, value, ec));
- if (*ec)
- pending_callbacks_.Remove(response_id);
-}
-
void IndexedDBDispatcher::RequestIDBCursorAdvance(
unsigned long count,
WebIDBCallbacks* callbacks_ptr,

Powered by Google App Engine
This is Rietveld 408576698