| 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/common/indexed_db/proxy_webidbobjectstore_impl.h" | 5 #include "content/common/indexed_db/proxy_webidbobjectstore_impl.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 "content/public/common/serialized_script_value.h" | 8 #include "content/public/common/serialized_script_value.h" |
| 9 #include "content/common/indexed_db/indexed_db_dispatcher.h" | 9 #include "content/common/indexed_db/indexed_db_dispatcher.h" |
| 10 #include "content/common/indexed_db/proxy_webidbindex_impl.h" | 10 #include "content/common/indexed_db/proxy_webidbindex_impl.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 const WebIDBKey& key, | 73 const WebIDBKey& key, |
| 74 WebIDBCallbacks* callbacks, | 74 WebIDBCallbacks* callbacks, |
| 75 const WebIDBTransaction& transaction, | 75 const WebIDBTransaction& transaction, |
| 76 WebExceptionCode& ec) { | 76 WebExceptionCode& ec) { |
| 77 IndexedDBDispatcher* dispatcher = | 77 IndexedDBDispatcher* dispatcher = |
| 78 IndexedDBDispatcher::ThreadSpecificInstance(); | 78 IndexedDBDispatcher::ThreadSpecificInstance(); |
| 79 dispatcher->RequestIDBObjectStoreGet( | 79 dispatcher->RequestIDBObjectStoreGet( |
| 80 IndexedDBKey(key), callbacks, idb_object_store_id_, transaction, &ec); | 80 IndexedDBKey(key), callbacks, idb_object_store_id_, transaction, &ec); |
| 81 } | 81 } |
| 82 | 82 |
| 83 void RendererWebIDBObjectStoreImpl::get( |
| 84 const WebIDBKeyRange& key_range, |
| 85 WebIDBCallbacks* callbacks, |
| 86 const WebIDBTransaction& transaction, |
| 87 WebExceptionCode& ec) { |
| 88 IndexedDBDispatcher* dispatcher = |
| 89 IndexedDBDispatcher::ThreadSpecificInstance(); |
| 90 dispatcher->RequestIDBObjectStoreGetByRange( |
| 91 IndexedDBKeyRange(key_range), callbacks, |
| 92 idb_object_store_id_, transaction, &ec); |
| 93 } |
| 94 |
| 83 void RendererWebIDBObjectStoreImpl::put( | 95 void RendererWebIDBObjectStoreImpl::put( |
| 84 const WebSerializedScriptValue& value, | 96 const WebSerializedScriptValue& value, |
| 85 const WebIDBKey& key, | 97 const WebIDBKey& key, |
| 86 PutMode put_mode, | 98 PutMode put_mode, |
| 87 WebIDBCallbacks* callbacks, | 99 WebIDBCallbacks* callbacks, |
| 88 const WebIDBTransaction& transaction, | 100 const WebIDBTransaction& transaction, |
| 89 WebExceptionCode& ec) { | 101 WebExceptionCode& ec) { |
| 90 IndexedDBDispatcher* dispatcher = | 102 IndexedDBDispatcher* dispatcher = |
| 91 IndexedDBDispatcher::ThreadSpecificInstance(); | 103 IndexedDBDispatcher::ThreadSpecificInstance(); |
| 92 dispatcher->RequestIDBObjectStorePut( | 104 dispatcher->RequestIDBObjectStorePut( |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 const WebIDBKeyRange& idb_key_range, | 200 const WebIDBKeyRange& idb_key_range, |
| 189 WebIDBCallbacks* callbacks, | 201 WebIDBCallbacks* callbacks, |
| 190 const WebIDBTransaction& transaction, | 202 const WebIDBTransaction& transaction, |
| 191 WebExceptionCode& ec) { | 203 WebExceptionCode& ec) { |
| 192 IndexedDBDispatcher* dispatcher = | 204 IndexedDBDispatcher* dispatcher = |
| 193 IndexedDBDispatcher::ThreadSpecificInstance(); | 205 IndexedDBDispatcher::ThreadSpecificInstance(); |
| 194 dispatcher->RequestIDBObjectStoreCount( | 206 dispatcher->RequestIDBObjectStoreCount( |
| 195 idb_key_range, callbacks, idb_object_store_id_, | 207 idb_key_range, callbacks, idb_object_store_id_, |
| 196 transaction, &ec); | 208 transaction, &ec); |
| 197 } | 209 } |
| OLD | NEW |