Commit 69547150 authored by hans@chromium.org's avatar hans@chromium.org

IndexedDB: Prepare to remove IDBCallbacks::onSuccess() used for null values.

The WebKit side code will change to use onSuccess(SerializedScriptValue::nullValue()) instead.

BUG=70221
TEST=no new functionality

Review URL: http://codereview.chromium.org/6265027

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72781 0039d316-1c4b-4281-b951-d872f2087c98
parent 86c6c3f2
......@@ -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()));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment