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/webidbcursor_impl.h" | 5 #include "content/child/indexed_db/webidbcursor_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 void WebIDBCursorImpl::IOThreadHelper::PrefetchReset( | 290 void WebIDBCursorImpl::IOThreadHelper::PrefetchReset( |
291 int32_t used_prefetches, | 291 int32_t used_prefetches, |
292 int32_t unused_prefetches, | 292 int32_t unused_prefetches, |
293 const std::vector<std::string>& unused_blob_uuids) { | 293 const std::vector<std::string>& unused_blob_uuids) { |
294 cursor_->PrefetchReset(used_prefetches, unused_prefetches, unused_blob_uuids); | 294 cursor_->PrefetchReset(used_prefetches, unused_prefetches, unused_blob_uuids); |
295 } | 295 } |
296 | 296 |
297 CallbacksAssociatedPtrInfo WebIDBCursorImpl::IOThreadHelper::GetCallbacksProxy( | 297 CallbacksAssociatedPtrInfo WebIDBCursorImpl::IOThreadHelper::GetCallbacksProxy( |
298 std::unique_ptr<IndexedDBCallbacksImpl> callbacks) { | 298 std::unique_ptr<IndexedDBCallbacksImpl> callbacks) { |
299 CallbacksAssociatedPtrInfo ptr_info; | 299 CallbacksAssociatedPtrInfo ptr_info; |
300 indexed_db::mojom::CallbacksAssociatedRequest request; | 300 auto request = mojo::MakeRequest(&ptr_info); |
301 cursor_.associated_group()->CreateAssociatedInterface( | |
302 mojo::AssociatedGroup::WILL_PASS_PTR, &ptr_info, &request); | |
303 mojo::MakeStrongAssociatedBinding(std::move(callbacks), std::move(request)); | 301 mojo::MakeStrongAssociatedBinding(std::move(callbacks), std::move(request)); |
304 return ptr_info; | 302 return ptr_info; |
305 } | 303 } |
306 | 304 |
307 } // namespace content | 305 } // namespace content |
OLD | NEW |