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

Unified Diff: content/common/indexed_db/indexed_db.mojom

Issue 2500263003: Port messages sent by WebIDBCursorImpl to Mojo. (Closed)
Patch Set: Address dcheng@'s comments. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/indexed_db/webidbfactory_impl.cc ('k') | content/common/indexed_db/indexed_db_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/indexed_db/indexed_db.mojom
diff --git a/content/common/indexed_db/indexed_db.mojom b/content/common/indexed_db/indexed_db.mojom
index ad69a5abd7567711dd6b1f91a0c4ac14462be5a3..39a47b85f0e1e1377a30938ec0ff566eabbf5cb6 100644
--- a/content/common/indexed_db/indexed_db.mojom
+++ b/content/common/indexed_db/indexed_db.mojom
@@ -111,11 +111,22 @@ interface Callbacks {
SuccessDatabase(associated Database? database, DatabaseMetadata metadata);
// Database::OpenCursor
- SuccessCursor(int32 cursor_id, Key key, Key primary_key, Value? value);
+ SuccessCursor(associated Cursor cursor,
+ Key key,
+ Key primary_key,
+ Value? value);
// Database::Get / Cursor::Advance
SuccessValue(ReturnValue? value);
+ // Cursor::Continue / Advance
+ SuccessCursorContinue(Key key, Key primary_key, Value? value);
+
+ // Cursor::Prefetch
+ SuccessCursorPrefetch(array<Key> keys,
+ array<Key> primary_keys,
+ array<Value> values);
+
// Database::GetAll
SuccessArray(array<ReturnValue> values);
@@ -141,6 +152,14 @@ interface DatabaseCallbacks {
Complete(int64 transaction_id);
};
+interface Cursor {
+ Advance(uint32 count, associated Callbacks callbacks);
+ Continue(Key key, Key primary_key, associated Callbacks callbacks);
+ Prefetch(int32 count, associated Callbacks callbacks);
+ PrefetchReset(int32 used_prefetches, int32 unused_prefetches,
+ array<string> unused_blob_uuids);
+};
+
interface Database {
CreateObjectStore(int64 transaction_id,
int64 object_store_id,
« no previous file with comments | « content/child/indexed_db/webidbfactory_impl.cc ('k') | content/common/indexed_db/indexed_db_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698