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 <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "content/child/indexed_db/indexed_db_dispatcher.h" | 10 #include "content/child/indexed_db/indexed_db_dispatcher.h" |
11 #include "content/child/indexed_db/indexed_db_key_builders.h" | 11 #include "content/child/indexed_db/indexed_db_key_builders.h" |
12 #include "content/child/thread_safe_sender.h" | 12 #include "content/child/thread_safe_sender.h" |
13 #include "content/child/worker_task_runner.h" | 13 #include "content/child/worker_task_runner.h" |
14 #include "content/common/indexed_db/indexed_db_messages.h" | 14 #include "content/common/indexed_db/indexed_db_messages.h" |
15 #include "third_party/WebKit/public/platform/WebBlobInfo.h" | 15 #include "third_party/WebKit/public/platform/WebBlobInfo.h" |
16 #include "third_party/WebKit/public/platform/WebIDBKeyPath.h" | |
17 #include "third_party/WebKit/public/platform/WebIDBMetadata.h" | |
18 #include "third_party/WebKit/public/platform/WebString.h" | 16 #include "third_party/WebKit/public/platform/WebString.h" |
19 #include "third_party/WebKit/public/platform/WebVector.h" | 17 #include "third_party/WebKit/public/platform/WebVector.h" |
| 18 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBKeyPath.h" |
| 19 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBMetadata.h" |
20 | 20 |
21 using blink::WebBlobInfo; | 21 using blink::WebBlobInfo; |
22 using blink::WebIDBCallbacks; | 22 using blink::WebIDBCallbacks; |
23 using blink::WebIDBCursor; | 23 using blink::WebIDBCursor; |
24 using blink::WebIDBDatabase; | 24 using blink::WebIDBDatabase; |
25 using blink::WebIDBDatabaseCallbacks; | 25 using blink::WebIDBDatabaseCallbacks; |
26 using blink::WebIDBMetadata; | 26 using blink::WebIDBMetadata; |
27 using blink::WebIDBKey; | 27 using blink::WebIDBKey; |
28 using blink::WebIDBKeyPath; | 28 using blink::WebIDBKeyPath; |
29 using blink::WebIDBKeyRange; | 29 using blink::WebIDBKeyRange; |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 | 274 |
275 void WebIDBDatabaseImpl::ackReceivedBlobs(const WebVector<WebString>& uuids) { | 275 void WebIDBDatabaseImpl::ackReceivedBlobs(const WebVector<WebString>& uuids) { |
276 DCHECK(uuids.size()); | 276 DCHECK(uuids.size()); |
277 std::vector<std::string> param(uuids.size()); | 277 std::vector<std::string> param(uuids.size()); |
278 for (size_t i = 0; i < uuids.size(); ++i) | 278 for (size_t i = 0; i < uuids.size(); ++i) |
279 param[i] = uuids[i].latin1().data(); | 279 param[i] = uuids[i].latin1().data(); |
280 thread_safe_sender_->Send(new IndexedDBHostMsg_AckReceivedBlobs(param)); | 280 thread_safe_sender_->Send(new IndexedDBHostMsg_AckReceivedBlobs(param)); |
281 } | 281 } |
282 | 282 |
283 } // namespace content | 283 } // namespace content |
OLD | NEW |