| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef IDBKey_h | 26 #ifndef IDBKey_h |
| 27 #define IDBKey_h | 27 #define IDBKey_h |
| 28 | 28 |
| 29 #include "modules/ModulesExport.h" | 29 #include "modules/ModulesExport.h" |
| 30 #include "platform/SharedBuffer.h" | 30 #include "platform/SharedBuffer.h" |
| 31 #include "platform/heap/Handle.h" | 31 #include "platform/heap/Handle.h" |
| 32 #include "wtf/Forward.h" | 32 #include "platform/wtf/Forward.h" |
| 33 #include "wtf/Vector.h" | 33 #include "platform/wtf/Vector.h" |
| 34 #include "wtf/text/WTFString.h" | 34 #include "platform/wtf/text/WTFString.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 class MODULES_EXPORT IDBKey : public GarbageCollectedFinalized<IDBKey> { | 38 class MODULES_EXPORT IDBKey : public GarbageCollectedFinalized<IDBKey> { |
| 39 public: | 39 public: |
| 40 typedef HeapVector<Member<IDBKey>> KeyArray; | 40 typedef HeapVector<Member<IDBKey>> KeyArray; |
| 41 | 41 |
| 42 static IDBKey* CreateInvalid() { return new IDBKey(); } | 42 static IDBKey* CreateInvalid() { return new IDBKey(); } |
| 43 | 43 |
| 44 static IDBKey* CreateNumber(double number) { | 44 static IDBKey* CreateNumber(double number) { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 const Type type_; | 122 const Type type_; |
| 123 const KeyArray array_; | 123 const KeyArray array_; |
| 124 RefPtr<SharedBuffer> binary_; | 124 RefPtr<SharedBuffer> binary_; |
| 125 const String string_; | 125 const String string_; |
| 126 const double number_ = 0; | 126 const double number_ = 0; |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 } // namespace blink | 129 } // namespace blink |
| 130 | 130 |
| 131 #endif // IDBKey_h | 131 #endif // IDBKey_h |
| OLD | NEW |