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

Side by Side Diff: content/child/indexed_db/webidbcursor_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/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
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
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_fetch_dispatcher.cc ('k') | content/child/indexed_db/webidbdatabase_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698