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

Side by Side Diff: content/browser/in_process_webkit/indexed_db_callbacks.cc

Issue 11194026: Flush out IPC for onSuccess() / onSuccess(long long) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: formatting nit Created 8 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/in_process_webkit/indexed_db_callbacks.h" 5 #include "content/browser/in_process_webkit/indexed_db_callbacks.h"
6 6
7 #include "content/common/indexed_db/indexed_db_messages.h" 7 #include "content/common/indexed_db/indexed_db_messages.h"
8 #include "webkit/quota/quota_manager.h" 8 #include "webkit/quota/quota_manager.h"
9 9
10 using content::IndexedDBKey; 10 using content::IndexedDBKey;
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 198
199 void IndexedDBCallbacks<WebKit::WebSerializedScriptValue>::onSuccess( 199 void IndexedDBCallbacks<WebKit::WebSerializedScriptValue>::onSuccess(
200 const WebKit::WebSerializedScriptValue& value, 200 const WebKit::WebSerializedScriptValue& value,
201 const WebKit::WebIDBKey& primaryKey, 201 const WebKit::WebIDBKey& primaryKey,
202 const WebKit::WebIDBKeyPath& keyPath) { 202 const WebKit::WebIDBKeyPath& keyPath) {
203 dispatcher_host()->Send( 203 dispatcher_host()->Send(
204 new IndexedDBMsg_CallbacksSuccessSerializedScriptValueWithKey( 204 new IndexedDBMsg_CallbacksSuccessSerializedScriptValueWithKey(
205 thread_id(), response_id(), SerializedScriptValue(value), 205 thread_id(), response_id(), SerializedScriptValue(value),
206 IndexedDBKey(primaryKey), IndexedDBKeyPath(keyPath))); 206 IndexedDBKey(primaryKey), IndexedDBKeyPath(keyPath)));
207 } 207 }
208
209 void IndexedDBCallbacks<WebKit::WebSerializedScriptValue>::onSuccess(
210 long long value) {
211 dispatcher_host()->Send(
212 new IndexedDBMsg_CallbacksSuccessInteger(thread_id(),
213 response_id(),
214 value));
215 }
216
217 void IndexedDBCallbacks<WebKit::WebSerializedScriptValue>::onSuccess() {
218 dispatcher_host()->Send(
219 new IndexedDBMsg_CallbacksSuccessUndefined(thread_id(),
220 response_id()));
221 }
OLDNEW
« no previous file with comments | « content/browser/in_process_webkit/indexed_db_callbacks.h ('k') | content/common/indexed_db/indexed_db_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698