Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: content/child/indexed_db/webidbdatabase_impl.cc

Issue 2695333002: Mojo C++ bindings: remove usage of AssociatedGroup from content/ (Closed)
Patch Set: . Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/child/indexed_db/webidbcursor_impl.cc ('k') | content/child/indexed_db/webidbfactory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698