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_webidbdatabase_impl.h" | 5 #include "content/common/indexed_db/proxy_webidbdatabase_impl.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "content/common/child_thread.h" | 9 #include "content/common/child_thread.h" |
10 #include "content/common/indexed_db/indexed_db_messages.h" | 10 #include "content/common/indexed_db/indexed_db_messages.h" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 long long transaction_id, | 111 long long transaction_id, |
112 long long object_store_id, | 112 long long object_store_id, |
113 WebVector<unsigned char>* value, | 113 WebVector<unsigned char>* value, |
114 const WebKit::WebIDBKey& key, | 114 const WebKit::WebIDBKey& key, |
115 PutMode put_mode, | 115 PutMode put_mode, |
116 WebIDBCallbacks* callbacks, | 116 WebIDBCallbacks* callbacks, |
117 const WebVector<long long>& web_index_ids, | 117 const WebVector<long long>& web_index_ids, |
118 const WebVector<WebIndexKeys>& web_index_keys) { | 118 const WebVector<WebIndexKeys>& web_index_keys) { |
119 IndexedDBDispatcher* dispatcher = | 119 IndexedDBDispatcher* dispatcher = |
120 IndexedDBDispatcher::ThreadSpecificInstance(); | 120 IndexedDBDispatcher::ThreadSpecificInstance(); |
| 121 dispatcher->RequestIDBDatabasePutOld( |
| 122 ipc_database_id_, transaction_id, object_store_id, |
| 123 value, IndexedDBKey(key), put_mode, callbacks, |
| 124 web_index_ids, web_index_keys); |
| 125 } |
| 126 |
| 127 void RendererWebIDBDatabaseImpl::put( |
| 128 long long transaction_id, |
| 129 long long object_store_id, |
| 130 const WebKit::WebData& value, |
| 131 const WebKit::WebIDBKey& key, |
| 132 PutMode put_mode, |
| 133 WebIDBCallbacks* callbacks, |
| 134 const WebVector<long long>& web_index_ids, |
| 135 const WebVector<WebIndexKeys>& web_index_keys) { |
| 136 IndexedDBDispatcher* dispatcher = |
| 137 IndexedDBDispatcher::ThreadSpecificInstance(); |
121 dispatcher->RequestIDBDatabasePut( | 138 dispatcher->RequestIDBDatabasePut( |
122 ipc_database_id_, transaction_id, object_store_id, | 139 ipc_database_id_, transaction_id, object_store_id, |
123 value, IndexedDBKey(key), put_mode, callbacks, | 140 value, IndexedDBKey(key), put_mode, callbacks, |
124 web_index_ids, web_index_keys); | 141 web_index_ids, web_index_keys); |
125 } | 142 } |
126 | 143 |
127 void RendererWebIDBDatabaseImpl::setIndexKeys( | 144 void RendererWebIDBDatabaseImpl::setIndexKeys( |
128 long long transaction_id, | 145 long long transaction_id, |
129 long long object_store_id, | 146 long long object_store_id, |
130 const WebKit::WebIDBKey& primary_key, | 147 const WebKit::WebIDBKey& primary_key, |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 IndexedDBDispatcher::Send(new IndexedDBHostMsg_DatabaseAbort( | 272 IndexedDBDispatcher::Send(new IndexedDBHostMsg_DatabaseAbort( |
256 ipc_database_id_, transaction_id)); | 273 ipc_database_id_, transaction_id)); |
257 } | 274 } |
258 | 275 |
259 void RendererWebIDBDatabaseImpl::commit(long long transaction_id) { | 276 void RendererWebIDBDatabaseImpl::commit(long long transaction_id) { |
260 IndexedDBDispatcher::Send(new IndexedDBHostMsg_DatabaseCommit( | 277 IndexedDBDispatcher::Send(new IndexedDBHostMsg_DatabaseCommit( |
261 ipc_database_id_, transaction_id)); | 278 ipc_database_id_, transaction_id)); |
262 } | 279 } |
263 | 280 |
264 } // namespace content | 281 } // namespace content |
OLD | NEW |