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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
685 | 685 |
686 void WebIDBDatabaseImpl::IOThreadHelper::AckReceivedBlobs( | 686 void WebIDBDatabaseImpl::IOThreadHelper::AckReceivedBlobs( |
687 const std::vector<std::string>& uuids) { | 687 const std::vector<std::string>& uuids) { |
688 database_->AckReceivedBlobs(uuids); | 688 database_->AckReceivedBlobs(uuids); |
689 } | 689 } |
690 | 690 |
691 CallbacksAssociatedPtrInfo | 691 CallbacksAssociatedPtrInfo |
692 WebIDBDatabaseImpl::IOThreadHelper::GetCallbacksProxy( | 692 WebIDBDatabaseImpl::IOThreadHelper::GetCallbacksProxy( |
693 std::unique_ptr<IndexedDBCallbacksImpl> callbacks) { | 693 std::unique_ptr<IndexedDBCallbacksImpl> callbacks) { |
694 CallbacksAssociatedPtrInfo ptr_info; | 694 CallbacksAssociatedPtrInfo ptr_info; |
695 indexed_db::mojom::CallbacksAssociatedRequest request; | 695 auto request = mojo::MakeRequest(&ptr_info); |
696 database_.associated_group()->CreateAssociatedInterface( | |
697 mojo::AssociatedGroup::WILL_PASS_PTR, &ptr_info, &request); | |
698 mojo::MakeStrongAssociatedBinding(std::move(callbacks), std::move(request)); | 696 mojo::MakeStrongAssociatedBinding(std::move(callbacks), std::move(request)); |
699 return ptr_info; | 697 return ptr_info; |
700 } | 698 } |
701 | 699 |
702 } // namespace content | 700 } // namespace content |
OLD | NEW |