| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 26 matching lines...) Expand all Loading... |
| 37 #include "public/platform/WebIDBTypes.h" | 37 #include "public/platform/WebIDBTypes.h" |
| 38 #include "wtf/Forward.h" | 38 #include "wtf/Forward.h" |
| 39 #include "wtf/text/WTFString.h" | 39 #include "wtf/text/WTFString.h" |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 class ExceptionState; | 43 class ExceptionState; |
| 44 class IDBObjectStore; | 44 class IDBObjectStore; |
| 45 | 45 |
| 46 class IDBIndex : public GarbageCollectedFinalized<IDBIndex>, public ScriptWrappa
ble { | 46 class IDBIndex : public GarbageCollectedFinalized<IDBIndex>, public ScriptWrappa
ble { |
| 47 DEFINE_WRAPPERTYPEINFO(); |
| 47 public: | 48 public: |
| 48 static IDBIndex* create(const IDBIndexMetadata& metadata, IDBObjectStore* ob
jectStore, IDBTransaction* transaction) | 49 static IDBIndex* create(const IDBIndexMetadata& metadata, IDBObjectStore* ob
jectStore, IDBTransaction* transaction) |
| 49 { | 50 { |
| 50 return new IDBIndex(metadata, objectStore, transaction); | 51 return new IDBIndex(metadata, objectStore, transaction); |
| 51 } | 52 } |
| 52 ~IDBIndex(); | 53 ~IDBIndex(); |
| 53 void trace(Visitor*); | 54 void trace(Visitor*); |
| 54 | 55 |
| 55 // Implement the IDL | 56 // Implement the IDL |
| 56 const String& name() const { return m_metadata.name; } | 57 const String& name() const { return m_metadata.name; } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 80 | 81 |
| 81 IDBIndexMetadata m_metadata; | 82 IDBIndexMetadata m_metadata; |
| 82 Member<IDBObjectStore> m_objectStore; | 83 Member<IDBObjectStore> m_objectStore; |
| 83 Member<IDBTransaction> m_transaction; | 84 Member<IDBTransaction> m_transaction; |
| 84 bool m_deleted; | 85 bool m_deleted; |
| 85 }; | 86 }; |
| 86 | 87 |
| 87 } // namespace blink | 88 } // namespace blink |
| 88 | 89 |
| 89 #endif // IDBIndex_h | 90 #endif // IDBIndex_h |
| OLD | NEW |