| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/common/indexed_db_messages.h" | 7 #include "content/common/indexed_db_messages.h" |
| 8 | 8 |
| 9 IndexedDBCallbacksBase::IndexedDBCallbacksBase( | 9 IndexedDBCallbacksBase::IndexedDBCallbacksBase( |
| 10 IndexedDBDispatcherHost* dispatcher_host, | 10 IndexedDBDispatcherHost* dispatcher_host, |
| 11 int32 response_id) | 11 int32 response_id) |
| 12 : dispatcher_host_(dispatcher_host), | 12 : dispatcher_host_(dispatcher_host), |
| 13 response_id_(response_id) { | 13 response_id_(response_id) { |
| 14 } | 14 } |
| 15 | 15 |
| 16 IndexedDBCallbacksBase::~IndexedDBCallbacksBase() {} | 16 IndexedDBCallbacksBase::~IndexedDBCallbacksBase() {} |
| 17 | 17 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 44 new IndexedDBMsg_CallbacksSuccessIndexedDBKey( | 44 new IndexedDBMsg_CallbacksSuccessIndexedDBKey( |
| 45 response_id(), IndexedDBKey(value))); | 45 response_id(), IndexedDBKey(value))); |
| 46 } | 46 } |
| 47 | 47 |
| 48 void IndexedDBCallbacks<WebKit::WebSerializedScriptValue>::onSuccess( | 48 void IndexedDBCallbacks<WebKit::WebSerializedScriptValue>::onSuccess( |
| 49 const WebKit::WebSerializedScriptValue& value) { | 49 const WebKit::WebSerializedScriptValue& value) { |
| 50 dispatcher_host()->Send( | 50 dispatcher_host()->Send( |
| 51 new IndexedDBMsg_CallbacksSuccessSerializedScriptValue( | 51 new IndexedDBMsg_CallbacksSuccessSerializedScriptValue( |
| 52 response_id(), SerializedScriptValue(value))); | 52 response_id(), SerializedScriptValue(value))); |
| 53 } | 53 } |
| OLD | NEW |