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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module indexed_db.mojom;
6
7 import "url/mojo/origin.mojom";
8
9 struct ErrorInfo {
10 int16 code;
11 string message;
12 };
13
14 // An interface implemented by the client that exists for the lifetime of an
15 // open database connection. Used by the server to send unsolicited messages to
16 // the client.
17 interface DatabaseClient {
18 OnTransactionAborted(int64 host_transaction_id, ErrorInfo error);
19 OnTransactionCompleted(int64 host_transaction_id);
20 OnForcedClosed();
21 OnVersionChange(int64 old_version, int64 new_version);
22 };
23
24 interface DatabaseFactory {
25 Open(string name, int64 version, int64 transaction_id,
26 url.mojom.Origin origin, associated DatabaseClient client, int64 thread_i d,
27 int64 callbacks_id);
28 };
OLDNEW
« 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