| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #ifndef IDBMetadata_h | 29 #ifndef IDBMetadata_h |
| 30 #define IDBMetadata_h | 30 #define IDBMetadata_h |
| 31 | 31 |
| 32 #include "modules/indexeddb/IDBKeyPath.h" | 32 #include "modules/indexeddb/IDBKeyPath.h" |
| 33 #include "public/platform/modules/indexeddb/WebIDBMetadata.h" | 33 #include "public/platform/modules/indexeddb/indexed_db.mojom-blink.h" |
| 34 #include "wtf/Allocator.h" | 34 #include "wtf/Allocator.h" |
| 35 #include "wtf/HashMap.h" | 35 #include "wtf/HashMap.h" |
| 36 #include "wtf/text/StringHash.h" | 36 #include "wtf/text/StringHash.h" |
| 37 #include "wtf/text/WTFString.h" | 37 #include "wtf/text/WTFString.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 struct IDBIndexMetadata { | 41 struct IDBIndexMetadata { |
| 42 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 42 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| 43 IDBIndexMetadata() { } | 43 IDBIndexMetadata() { } |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 } | 95 } |
| 96 | 96 |
| 97 IDBDatabaseMetadata(const String& name, int64_t id, int64_t version, int64_t
maxObjectStoreId) | 97 IDBDatabaseMetadata(const String& name, int64_t id, int64_t version, int64_t
maxObjectStoreId) |
| 98 : name(name) | 98 : name(name) |
| 99 , id(id) | 99 , id(id) |
| 100 , version(version) | 100 , version(version) |
| 101 , maxObjectStoreId(maxObjectStoreId) | 101 , maxObjectStoreId(maxObjectStoreId) |
| 102 { | 102 { |
| 103 } | 103 } |
| 104 | 104 |
| 105 explicit IDBDatabaseMetadata(const WebIDBMetadata&); | 105 explicit IDBDatabaseMetadata(indexed_db::mojom::blink::DatabaseMetadataPtr); |
| 106 | 106 |
| 107 String name; | 107 String name; |
| 108 int64_t id; | 108 int64_t id; |
| 109 int64_t version; | 109 int64_t version; |
| 110 int64_t maxObjectStoreId; | 110 int64_t maxObjectStoreId; |
| 111 | 111 |
| 112 ObjectStoreMap objectStores; | 112 ObjectStoreMap objectStores; |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 } // namespace blink | 115 } // namespace blink |
| 116 | 116 |
| 117 #endif // IDBMetadata_h | 117 #endif // IDBMetadata_h |
| OLD | NEW |