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

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

Issue 2511403003: Send IndexedDB observations through IDBDatabaseCallbacks. (Closed)
Patch Set: Rebased. Created 4 years, 1 month 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>
11 11
12 #include "content/child/indexed_db/indexed_db_dispatcher.h" 12 #include "content/child/indexed_db/indexed_db_dispatcher.h"
13 #include "content/child/indexed_db/indexed_db_key_builders.h" 13 #include "content/child/indexed_db/indexed_db_key_builders.h"
14 #include "content/common/indexed_db/indexed_db_messages.h"
15 #include "mojo/public/cpp/bindings/strong_associated_binding.h" 14 #include "mojo/public/cpp/bindings/strong_associated_binding.h"
16 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBValue.h" 15 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBValue.h"
17 16
18 using blink::WebBlobInfo; 17 using blink::WebBlobInfo;
19 using blink::WebData; 18 using blink::WebData;
20 using blink::WebIDBCallbacks; 19 using blink::WebIDBCallbacks;
21 using blink::WebIDBKey; 20 using blink::WebIDBKey;
22 using blink::WebIDBValue; 21 using blink::WebIDBValue;
23 using indexed_db::mojom::CallbacksAssociatedPtrInfo; 22 using indexed_db::mojom::CallbacksAssociatedPtrInfo;
24 using indexed_db::mojom::CursorAssociatedPtrInfo; 23 using indexed_db::mojom::CursorAssociatedPtrInfo;
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 std::unique_ptr<IndexedDBCallbacksImpl> callbacks) { 297 std::unique_ptr<IndexedDBCallbacksImpl> callbacks) {
299 CallbacksAssociatedPtrInfo ptr_info; 298 CallbacksAssociatedPtrInfo ptr_info;
300 indexed_db::mojom::CallbacksAssociatedRequest request; 299 indexed_db::mojom::CallbacksAssociatedRequest request;
301 cursor_.associated_group()->CreateAssociatedInterface( 300 cursor_.associated_group()->CreateAssociatedInterface(
302 mojo::AssociatedGroup::WILL_PASS_PTR, &ptr_info, &request); 301 mojo::AssociatedGroup::WILL_PASS_PTR, &ptr_info, &request);
303 mojo::MakeStrongAssociatedBinding(std::move(callbacks), std::move(request)); 302 mojo::MakeStrongAssociatedBinding(std::move(callbacks), std::move(request));
304 return ptr_info; 303 return ptr_info;
305 } 304 }
306 305
307 } // namespace content 306 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698