| 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 module content.mojom; | 5 module content.mojom; |
| 6 | 6 |
| 7 import "components/leveldb/public/interfaces/leveldb.mojom"; | 7 import "components/leveldb/public/interfaces/leveldb.mojom"; |
| 8 | 8 |
| 9 // Gives information about changes to a LevelDB database. | 9 // Gives information about changes to a LevelDB database. |
| 10 // Note that observer methods are called before the callbacks for the | 10 // Note that observer methods are called before the callbacks for the |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 // Removes all the entries. | 48 // Removes all the entries. |
| 49 DeleteAll(string source) => (bool success); | 49 DeleteAll(string source) => (bool success); |
| 50 | 50 |
| 51 // Returns the value of the |key|. | 51 // Returns the value of the |key|. |
| 52 Get(array<uint8> key) => (bool success, array<uint8> value); | 52 Get(array<uint8> key) => (bool success, array<uint8> value); |
| 53 | 53 |
| 54 // Only used with small databases. Returns all key/value pairs. | 54 // Only used with small databases. Returns all key/value pairs. |
| 55 [Sync] | 55 [Sync] |
| 56 GetAll(associated LevelDBWrapperGetAllCallback complete_callback) | 56 GetAll(associated LevelDBWrapperGetAllCallback complete_callback) |
| 57 => (leveldb.mojom.DatabaseError status, array<KeyValue> data); | 57 => (leveldb.mojom.DatabaseError status, array<KeyValue> data); |
| 58 |
| 59 [Sync] FlushPipe() => (); |
| 58 }; | 60 }; |
| OLD | NEW |