OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/renderer/indexed_db/renderer_webidbobjectstore_impl.h" | 5 #include "content/renderer/indexed_db/renderer_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/renderer/indexed_db/indexed_db_dispatcher.h" | 9 #include "content/renderer/indexed_db/indexed_db_dispatcher.h" |
10 #include "content/renderer/indexed_db/renderer_webidbindex_impl.h" | 10 #include "content/renderer/indexed_db/renderer_webidbindex_impl.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 const WebIDBKey& key, | 98 const WebIDBKey& key, |
99 WebIDBCallbacks* callbacks, | 99 WebIDBCallbacks* callbacks, |
100 const WebIDBTransaction& transaction, | 100 const WebIDBTransaction& transaction, |
101 WebExceptionCode& ec) { | 101 WebExceptionCode& ec) { |
102 IndexedDBDispatcher* dispatcher = | 102 IndexedDBDispatcher* dispatcher = |
103 IndexedDBDispatcher::ThreadSpecificInstance(); | 103 IndexedDBDispatcher::ThreadSpecificInstance(); |
104 dispatcher->RequestIDBObjectStoreDelete( | 104 dispatcher->RequestIDBObjectStoreDelete( |
105 IndexedDBKey(key), callbacks, idb_object_store_id_, transaction, &ec); | 105 IndexedDBKey(key), callbacks, idb_object_store_id_, transaction, &ec); |
106 } | 106 } |
107 | 107 |
| 108 void RendererWebIDBObjectStoreImpl::deleteFunction( |
| 109 const WebIDBKeyRange& key_range, |
| 110 WebIDBCallbacks* callbacks, |
| 111 const WebIDBTransaction& transaction, |
| 112 WebExceptionCode& ec) { |
| 113 IndexedDBDispatcher* dispatcher = |
| 114 IndexedDBDispatcher::ThreadSpecificInstance(); |
| 115 dispatcher->RequestIDBObjectStoreDelete( |
| 116 IndexedDBKeyRange(key_range), callbacks, idb_object_store_id_, |
| 117 transaction, &ec); |
| 118 } |
| 119 |
108 void RendererWebIDBObjectStoreImpl::clear( | 120 void RendererWebIDBObjectStoreImpl::clear( |
109 WebIDBCallbacks* callbacks, | 121 WebIDBCallbacks* callbacks, |
110 const WebIDBTransaction& transaction, | 122 const WebIDBTransaction& transaction, |
111 WebExceptionCode& ec) { | 123 WebExceptionCode& ec) { |
112 IndexedDBDispatcher* dispatcher = | 124 IndexedDBDispatcher* dispatcher = |
113 IndexedDBDispatcher::ThreadSpecificInstance(); | 125 IndexedDBDispatcher::ThreadSpecificInstance(); |
114 dispatcher->RequestIDBObjectStoreClear( | 126 dispatcher->RequestIDBObjectStoreClear( |
115 callbacks, idb_object_store_id_, transaction, &ec); | 127 callbacks, idb_object_store_id_, transaction, &ec); |
116 } | 128 } |
117 | 129 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 const WebIDBKeyRange& idb_key_range, | 188 const WebIDBKeyRange& idb_key_range, |
177 WebIDBCallbacks* callbacks, | 189 WebIDBCallbacks* callbacks, |
178 const WebIDBTransaction& transaction, | 190 const WebIDBTransaction& transaction, |
179 WebExceptionCode& ec) { | 191 WebExceptionCode& ec) { |
180 IndexedDBDispatcher* dispatcher = | 192 IndexedDBDispatcher* dispatcher = |
181 IndexedDBDispatcher::ThreadSpecificInstance(); | 193 IndexedDBDispatcher::ThreadSpecificInstance(); |
182 dispatcher->RequestIDBObjectStoreCount( | 194 dispatcher->RequestIDBObjectStoreCount( |
183 idb_key_range, callbacks, idb_object_store_id_, | 195 idb_key_range, callbacks, idb_object_store_id_, |
184 transaction, &ec); | 196 transaction, &ec); |
185 } | 197 } |
OLD | NEW |