| 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> |
| 11 | 11 |
| 12 #include "base/memory/ptr_util.h" |
| 12 #include "content/child/indexed_db/indexed_db_dispatcher.h" | 13 #include "content/child/indexed_db/indexed_db_dispatcher.h" |
| 13 #include "content/child/indexed_db/indexed_db_key_builders.h" | 14 #include "content/child/indexed_db/indexed_db_key_builders.h" |
| 14 #include "mojo/public/cpp/bindings/strong_associated_binding.h" | 15 #include "mojo/public/cpp/bindings/strong_associated_binding.h" |
| 15 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBValue.h" | 16 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBValue.h" |
| 16 | 17 |
| 17 using blink::WebBlobInfo; | 18 using blink::WebBlobInfo; |
| 18 using blink::WebData; | 19 using blink::WebData; |
| 19 using blink::WebIDBCallbacks; | 20 using blink::WebIDBCallbacks; |
| 20 using blink::WebIDBKey; | 21 using blink::WebIDBKey; |
| 21 using blink::WebIDBValue; | 22 using blink::WebIDBValue; |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 std::unique_ptr<IndexedDBCallbacksImpl> callbacks) { | 298 std::unique_ptr<IndexedDBCallbacksImpl> callbacks) { |
| 298 CallbacksAssociatedPtrInfo ptr_info; | 299 CallbacksAssociatedPtrInfo ptr_info; |
| 299 indexed_db::mojom::CallbacksAssociatedRequest request; | 300 indexed_db::mojom::CallbacksAssociatedRequest request; |
| 300 cursor_.associated_group()->CreateAssociatedInterface( | 301 cursor_.associated_group()->CreateAssociatedInterface( |
| 301 mojo::AssociatedGroup::WILL_PASS_PTR, &ptr_info, &request); | 302 mojo::AssociatedGroup::WILL_PASS_PTR, &ptr_info, &request); |
| 302 mojo::MakeStrongAssociatedBinding(std::move(callbacks), std::move(request)); | 303 mojo::MakeStrongAssociatedBinding(std::move(callbacks), std::move(request)); |
| 303 return ptr_info; | 304 return ptr_info; |
| 304 } | 305 } |
| 305 | 306 |
| 306 } // namespace content | 307 } // namespace content |
| OLD | NEW |