| 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 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 struct FileInfo { | 68 struct FileInfo { |
| 69 mojo.common.mojom.FilePath path; | 69 mojo.common.mojom.FilePath path; |
| 70 mojo.common.mojom.String16 name; | 70 mojo.common.mojom.String16 name; |
| 71 mojo.common.mojom.Time last_modified; | 71 mojo.common.mojom.Time last_modified; |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 struct BlobInfo { | 74 struct BlobInfo { |
| 75 string uuid; | 75 string uuid; |
| 76 mojo.common.mojom.String16 mime_type; | 76 mojo.common.mojom.String16 mime_type; |
| 77 uint64 size; | 77 int64 size; |
| 78 FileInfo? file; | 78 FileInfo? file; |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 struct Value { | 81 struct Value { |
| 82 string bits; | 82 string bits; |
| 83 array<BlobInfo> blob_or_file_info; | 83 array<BlobInfo> blob_or_file_info; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 struct ReturnValue { | 86 struct ReturnValue { |
| 87 Value value; | 87 Value value; |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 }; | 231 }; |
| 232 | 232 |
| 233 interface Factory { | 233 interface Factory { |
| 234 GetDatabaseNames(associated Callbacks callbacks, url.mojom.Origin origin); | 234 GetDatabaseNames(associated Callbacks callbacks, url.mojom.Origin origin); |
| 235 Open(int32 worker_thread, associated Callbacks callbacks, | 235 Open(int32 worker_thread, associated Callbacks callbacks, |
| 236 associated DatabaseCallbacks database_callbacks, url.mojom.Origin origin, | 236 associated DatabaseCallbacks database_callbacks, url.mojom.Origin origin, |
| 237 mojo.common.mojom.String16 name, int64 version, int64 transaction_id); | 237 mojo.common.mojom.String16 name, int64 version, int64 transaction_id); |
| 238 DeleteDatabase(associated Callbacks callbacks, url.mojom.Origin origin, | 238 DeleteDatabase(associated Callbacks callbacks, url.mojom.Origin origin, |
| 239 mojo.common.mojom.String16 name); | 239 mojo.common.mojom.String16 name); |
| 240 }; | 240 }; |
| OLD | NEW |