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

Unified Diff: third_party/WebKit/public/platform/modules/indexeddb/indexed_db.mojom

Issue 2320213004: Port IndexedDB open() and database callbacks to Mojo. (Closed)
Patch Set: Make DatabaseClient an associated interface. Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/public/platform/modules/indexeddb/WebIDBFactory.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/modules/indexeddb/indexed_db.mojom
diff --git a/third_party/WebKit/public/platform/modules/indexeddb/indexed_db.mojom b/third_party/WebKit/public/platform/modules/indexeddb/indexed_db.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..343f73cc2e93e95251cb452255077fa39d98e0f9
--- /dev/null
+++ b/third_party/WebKit/public/platform/modules/indexeddb/indexed_db.mojom
@@ -0,0 +1,28 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module indexed_db.mojom;
+
+import "url/mojo/origin.mojom";
+
+struct ErrorInfo {
+ int16 code;
+ string message;
+};
+
+// An interface implemented by the client that exists for the lifetime of an
+// open database connection. Used by the server to send unsolicited messages to
+// the client.
+interface DatabaseClient {
+ OnTransactionAborted(int64 host_transaction_id, ErrorInfo error);
+ OnTransactionCompleted(int64 host_transaction_id);
+ OnForcedClosed();
+ OnVersionChange(int64 old_version, int64 new_version);
+};
+
+interface DatabaseFactory {
+ Open(string name, int64 version, int64 transaction_id,
+ url.mojom.Origin origin, associated DatabaseClient client, int64 thread_id,
+ int64 callbacks_id);
+};
« no previous file with comments | « third_party/WebKit/public/platform/modules/indexeddb/WebIDBFactory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698