OLD | NEW |
(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 }; |
OLD | NEW |