| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // TODO: This will move to //third_party/WebKit when //content/child/indexed_db | 5 // TODO: This will move to //third_party/WebKit when //content/child/indexed_db |
| 6 // is deleted but for now this will depend on //content/common types and so | 6 // is deleted but for now this will depend on //content/common types and so |
| 7 // so belongs here. | 7 // so belongs here. |
| 8 | 8 |
| 9 module indexed_db.mojom; | 9 module indexed_db.mojom; |
| 10 | 10 |
| 11 import "mojo/common/common_custom_types.mojom"; | 11 import "mojo/common/common_custom_types.mojom"; |
| 12 import "url/mojo/origin.mojom"; | 12 import "url/mojo/origin.mojom"; |
| 13 | 13 |
| 14 [Native] | 14 enum CursorDirection { |
| 15 enum CursorDirection; | 15 Next, |
| 16 NextNoDuplicate, |
| 17 Prev, |
| 18 PrevNoDuplicate, |
| 19 }; |
| 16 | 20 |
| 17 [Native] | 21 enum DataLoss { |
| 18 enum DataLoss; | 22 None, |
| 23 Total, |
| 24 }; |
| 19 | 25 |
| 20 [Native] | 26 [Native] |
| 21 struct Key; | 27 struct Key; |
| 22 | 28 |
| 23 [Native] | 29 [Native] |
| 24 struct KeyPath; | 30 struct KeyPath; |
| 25 | 31 |
| 26 [Native] | 32 [Native] |
| 27 struct KeyRange; | 33 struct KeyRange; |
| 28 | 34 |
| 29 [Native] | 35 enum PutMode { |
| 30 enum PutMode; | 36 AddOrUpdate, |
| 37 AddOnly, |
| 38 CursorUpdate, |
| 39 }; |
| 31 | 40 |
| 32 [Native] | 41 enum TaskType { |
| 33 enum TaskType; | 42 Normal, |
| 43 Preemptive, |
| 44 }; |
| 34 | 45 |
| 35 [Native] | 46 enum TransactionMode { |
| 36 enum TransactionMode; | 47 ReadOnly, |
| 48 ReadWrite, |
| 49 VersionChange, |
| 50 }; |
| 37 | 51 |
| 38 struct IndexMetadata { | 52 struct IndexMetadata { |
| 39 int64 id; | 53 int64 id; |
| 40 mojo.common.mojom.String16 name; | 54 mojo.common.mojom.String16 name; |
| 41 KeyPath key_path; | 55 KeyPath key_path; |
| 42 bool unique; | 56 bool unique; |
| 43 bool multi_entry; | 57 bool multi_entry; |
| 44 }; | 58 }; |
| 45 | 59 |
| 46 struct ObjectStoreMetadata { | 60 struct ObjectStoreMetadata { |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 }; | 264 }; |
| 251 | 265 |
| 252 interface Factory { | 266 interface Factory { |
| 253 GetDatabaseNames(associated Callbacks callbacks, url.mojom.Origin origin); | 267 GetDatabaseNames(associated Callbacks callbacks, url.mojom.Origin origin); |
| 254 Open(int32 worker_thread, associated Callbacks callbacks, | 268 Open(int32 worker_thread, associated Callbacks callbacks, |
| 255 associated DatabaseCallbacks database_callbacks, url.mojom.Origin origin, | 269 associated DatabaseCallbacks database_callbacks, url.mojom.Origin origin, |
| 256 mojo.common.mojom.String16 name, int64 version, int64 transaction_id); | 270 mojo.common.mojom.String16 name, int64 version, int64 transaction_id); |
| 257 DeleteDatabase(associated Callbacks callbacks, url.mojom.Origin origin, | 271 DeleteDatabase(associated Callbacks callbacks, url.mojom.Origin origin, |
| 258 mojo.common.mojom.String16 name); | 272 mojo.common.mojom.String16 name); |
| 259 }; | 273 }; |
| OLD | NEW |