| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 void setMetadata(const IDBDatabaseMetadata& metadata) { m_metadata = metadat
a; } | 61 void setMetadata(const IDBDatabaseMetadata& metadata) { m_metadata = metadat
a; } |
| 62 void indexCreated(int64_t objectStoreId, const IDBIndexMetadata&); | 62 void indexCreated(int64_t objectStoreId, const IDBIndexMetadata&); |
| 63 void indexDeleted(int64_t objectStoreId, int64_t indexId); | 63 void indexDeleted(int64_t objectStoreId, int64_t indexId); |
| 64 void transactionCreated(IDBTransaction*); | 64 void transactionCreated(IDBTransaction*); |
| 65 void transactionFinished(const IDBTransaction*); | 65 void transactionFinished(const IDBTransaction*); |
| 66 | 66 |
| 67 // Implement the IDL | 67 // Implement the IDL |
| 68 const String& name() const { return m_metadata.name; } | 68 const String& name() const { return m_metadata.name; } |
| 69 ScriptValue version(NewScriptState*) const; | 69 ScriptValue version(NewScriptState*) const; |
| 70 PassRefPtr<DOMStringList> objectStoreNames() const; | 70 PassRefPtrWillBeRawPtr<DOMStringList> objectStoreNames() const; |
| 71 | 71 |
| 72 PassRefPtr<IDBObjectStore> createObjectStore(const String& name, const Dicti
onary&, ExceptionState&); | 72 PassRefPtr<IDBObjectStore> createObjectStore(const String& name, const Dicti
onary&, ExceptionState&); |
| 73 PassRefPtr<IDBObjectStore> createObjectStore(const String& name, const IDBKe
yPath&, bool autoIncrement, ExceptionState&); | 73 PassRefPtr<IDBObjectStore> createObjectStore(const String& name, const IDBKe
yPath&, bool autoIncrement, ExceptionState&); |
| 74 PassRefPtr<IDBTransaction> transaction(ExecutionContext* context, PassRefPtr
<DOMStringList> scope, const String& mode, ExceptionState& exceptionState) { ret
urn transaction(context, *scope, mode, exceptionState); } | 74 PassRefPtr<IDBTransaction> transaction(ExecutionContext* context, PassRefPtr
WillBeRawPtr<DOMStringList> scope, const String& mode, ExceptionState& exception
State) { return transaction(context, *scope, mode, exceptionState); } |
| 75 PassRefPtr<IDBTransaction> transaction(ExecutionContext*, const Vector<Strin
g>&, const String& mode, ExceptionState&); | 75 PassRefPtr<IDBTransaction> transaction(ExecutionContext*, const Vector<Strin
g>&, const String& mode, ExceptionState&); |
| 76 PassRefPtr<IDBTransaction> transaction(ExecutionContext*, const String&, con
st String& mode, ExceptionState&); | 76 PassRefPtr<IDBTransaction> transaction(ExecutionContext*, const String&, con
st String& mode, ExceptionState&); |
| 77 void deleteObjectStore(const String& name, ExceptionState&); | 77 void deleteObjectStore(const String& name, ExceptionState&); |
| 78 void close(); | 78 void close(); |
| 79 | 79 |
| 80 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort); | 80 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort); |
| 81 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); | 81 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); |
| 82 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); | 82 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); |
| 83 DEFINE_ATTRIBUTE_EVENT_LISTENER(versionchange); | 83 DEFINE_ATTRIBUTE_EVENT_LISTENER(versionchange); |
| 84 | 84 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 // Keep track of the versionchange events waiting to be fired on this | 149 // Keep track of the versionchange events waiting to be fired on this |
| 150 // database so that we can cancel them if the database closes. | 150 // database so that we can cancel them if the database closes. |
| 151 WillBePersistentHeapVector<RefPtrWillBeMember<Event> > m_enqueuedEvents; | 151 WillBePersistentHeapVector<RefPtrWillBeMember<Event> > m_enqueuedEvents; |
| 152 | 152 |
| 153 RefPtr<IDBDatabaseCallbacks> m_databaseCallbacks; | 153 RefPtr<IDBDatabaseCallbacks> m_databaseCallbacks; |
| 154 }; | 154 }; |
| 155 | 155 |
| 156 } // namespace WebCore | 156 } // namespace WebCore |
| 157 | 157 |
| 158 #endif // IDBDatabase_h | 158 #endif // IDBDatabase_h |
| OLD | NEW |