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 16 matching lines...) Expand all Loading... |
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 "wtf/HashMap.h" | 33 #include "wtf/HashMap.h" |
34 #include "wtf/text/StringHash.h" | 34 #include "wtf/text/StringHash.h" |
35 #include "wtf/text/WTFString.h" | 35 #include "wtf/text/WTFString.h" |
36 | 36 |
37 namespace WebCore { | 37 namespace blink { |
38 | 38 |
39 struct IDBIndexMetadata { | 39 struct IDBIndexMetadata { |
40 IDBIndexMetadata() { } | 40 IDBIndexMetadata() { } |
41 IDBIndexMetadata(const String& name, int64_t id, const IDBKeyPath& keyPath,
bool unique, bool multiEntry) | 41 IDBIndexMetadata(const String& name, int64_t id, const IDBKeyPath& keyPath,
bool unique, bool multiEntry) |
42 : name(name) | 42 : name(name) |
43 , id(id) | 43 , id(id) |
44 , keyPath(keyPath) | 44 , keyPath(keyPath) |
45 , unique(unique) | 45 , unique(unique) |
46 , multiEntry(multiEntry) { } | 46 , multiEntry(multiEntry) { } |
47 String name; | 47 String name; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 String version; | 102 String version; |
103 int64_t intVersion; | 103 int64_t intVersion; |
104 int64_t maxObjectStoreId; | 104 int64_t maxObjectStoreId; |
105 | 105 |
106 ObjectStoreMap objectStores; | 106 ObjectStoreMap objectStores; |
107 }; | 107 }; |
108 | 108 |
109 } | 109 } |
110 | 110 |
111 #endif // IDBMetadata_h | 111 #endif // IDBMetadata_h |
OLD | NEW |