OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |