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

Unified Diff: chrome/browser/in_process_webkit/indexed_db_callbacks.h

Issue 6265027: IndexedDB: Prepare to remove IDBCallbacks::onSuccess() used for null values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/in_process_webkit/indexed_db_callbacks.h
diff --git a/chrome/browser/in_process_webkit/indexed_db_callbacks.h b/chrome/browser/in_process_webkit/indexed_db_callbacks.h
index 23544eda323d6230e501589f2e10ce1572f0b5ee..e5c6b18299a85b2c6afcfbde5d66a1a4b5063a02 100644
--- a/chrome/browser/in_process_webkit/indexed_db_callbacks.h
+++ b/chrome/browser/in_process_webkit/indexed_db_callbacks.h
@@ -91,6 +91,13 @@ class IndexedDBCallbacks<WebKit::WebIDBCursor>
new IndexedDBMsg_CallbacksSuccessIDBCursor(response_id(), object_id));
}
+ virtual void onSuccess(const WebKit::WebSerializedScriptValue& value) {
+ dispatcher_host()->Send(
+ new IndexedDBMsg_CallbacksSuccessSerializedScriptValue(
+ response_id(), SerializedScriptValue(value)));
+ }
+
+ // TODO(hans): Remove when WebKit rolls.
virtual void onSuccess() {
dispatcher_host()->Send(new IndexedDBMsg_CallbacksSuccessNull(
response_id()));
@@ -150,6 +157,13 @@ class IndexedDBCallbacks<void> : public IndexedDBCallbacksBase {
IndexedDBDispatcherHost* dispatcher_host, int32 response_id)
: IndexedDBCallbacksBase(dispatcher_host, response_id) { }
+ virtual void onSuccess(const WebKit::WebSerializedScriptValue& value) {
+ dispatcher_host()->Send(
+ new IndexedDBMsg_CallbacksSuccessSerializedScriptValue(
+ response_id(), SerializedScriptValue(value)));
+ }
+
+ // TODO(hans): Remove when WebKit rolls.
virtual void onSuccess() {
dispatcher_host()->Send(
new IndexedDBMsg_CallbacksSuccessNull(response_id()));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698