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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 #ifndef WebIDBMetadata_h | 26 #ifndef WebIDBMetadata_h |
27 #define WebIDBMetadata_h | 27 #define WebIDBMetadata_h |
28 | 28 |
29 #include "WebCommon.h" | 29 #include "WebCommon.h" |
30 #include "WebIDBKeyPath.h" | 30 #include "WebIDBKeyPath.h" |
31 #include "WebString.h" | 31 #include "WebString.h" |
32 #include "WebVector.h" | 32 #include "WebVector.h" |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
| 35 |
35 struct IDBDatabaseMetadata; | 36 struct IDBDatabaseMetadata; |
36 } | |
37 | |
38 namespace blink { | |
39 | 37 |
40 struct WebIDBMetadata { | 38 struct WebIDBMetadata { |
41 enum { | 39 enum { |
42 NoIntVersion = -1 | 40 NoIntVersion = -1 |
43 }; | 41 }; |
44 struct Index; | 42 struct Index; |
45 struct ObjectStore; | 43 struct ObjectStore; |
46 | 44 |
47 WebString name; | 45 WebString name; |
48 // FIXME: Both version members need to be present while we support both the | 46 // FIXME: Both version members need to be present while we support both the |
(...skipping 25 matching lines...) Expand all Loading... |
74 bool unique; | 72 bool unique; |
75 bool multiEntry; | 73 bool multiEntry; |
76 long long id; | 74 long long id; |
77 Index() | 75 Index() |
78 : keyPath(WebIDBKeyPath::createNull()) | 76 : keyPath(WebIDBKeyPath::createNull()) |
79 , unique(false) | 77 , unique(false) |
80 , multiEntry(false) { } | 78 , multiEntry(false) { } |
81 }; | 79 }; |
82 | 80 |
83 #if BLINK_IMPLEMENTATION | 81 #if BLINK_IMPLEMENTATION |
84 WebIDBMetadata(const blink::IDBDatabaseMetadata&); | 82 WebIDBMetadata(const IDBDatabaseMetadata&); |
85 operator blink::IDBDatabaseMetadata() const; | 83 operator IDBDatabaseMetadata() const; |
86 #endif | 84 #endif |
87 }; | 85 }; |
88 | 86 |
89 | |
90 } // namespace blink | 87 } // namespace blink |
91 | 88 |
92 #endif // WebIDBMetadata_h | 89 #endif // WebIDBMetadata_h |
OLD | NEW |