| 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);
|
| +};
|
|
|