OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/child/indexed_db/webidbdatabase_impl.h" | 5 #include "content/child/indexed_db/webidbdatabase_impl.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "content/child/indexed_db/indexed_db_dispatcher.h" | 9 #include "content/child/indexed_db/indexed_db_dispatcher.h" |
10 #include "content/child/indexed_db/indexed_db_key_builders.h" | 10 #include "content/child/indexed_db/indexed_db_key_builders.h" |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 void WebIDBDatabaseImpl::abort(long long transaction_id) { | 254 void WebIDBDatabaseImpl::abort(long long transaction_id) { |
255 thread_safe_sender_->Send( | 255 thread_safe_sender_->Send( |
256 new IndexedDBHostMsg_DatabaseAbort(ipc_database_id_, transaction_id)); | 256 new IndexedDBHostMsg_DatabaseAbort(ipc_database_id_, transaction_id)); |
257 } | 257 } |
258 | 258 |
259 void WebIDBDatabaseImpl::commit(long long transaction_id) { | 259 void WebIDBDatabaseImpl::commit(long long transaction_id) { |
260 thread_safe_sender_->Send( | 260 thread_safe_sender_->Send( |
261 new IndexedDBHostMsg_DatabaseCommit(ipc_database_id_, transaction_id)); | 261 new IndexedDBHostMsg_DatabaseCommit(ipc_database_id_, transaction_id)); |
262 } | 262 } |
263 | 263 |
| 264 void WebIDBDatabaseImpl::ackReceivedBlobs(const WebVector<WebString>& uuids) { |
| 265 DCHECK(uuids.size()); |
| 266 std::vector<std::string> param(uuids.size()); |
| 267 for (size_t i = 0; i < uuids.size(); ++i) |
| 268 param[i] = uuids[i].latin1().data(); |
| 269 thread_safe_sender_->Send(new IndexedDBHostMsg_AckReceivedBlobs(param)); |
| 270 } |
| 271 |
264 } // namespace content | 272 } // namespace content |
OLD | NEW |