| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 void transactionCreated(IDBTransaction*); | 59 void transactionCreated(IDBTransaction*); |
| 60 void transactionFinished(IDBTransaction*); | 60 void transactionFinished(IDBTransaction*); |
| 61 | 61 |
| 62 // Implement the IDL | 62 // Implement the IDL |
| 63 const String& name() const { return m_metadata.name; } | 63 const String& name() const { return m_metadata.name; } |
| 64 PassRefPtr<IDBAny> version() const; | 64 PassRefPtr<IDBAny> version() const; |
| 65 PassRefPtr<DOMStringList> objectStoreNames() const; | 65 PassRefPtr<DOMStringList> objectStoreNames() const; |
| 66 | 66 |
| 67 PassRefPtr<IDBObjectStore> createObjectStore(const String& name, const Dicti
onary&, ExceptionState&); | 67 PassRefPtr<IDBObjectStore> createObjectStore(const String& name, const Dicti
onary&, ExceptionState&); |
| 68 PassRefPtr<IDBObjectStore> createObjectStore(const String& name, const IDBKe
yPath&, bool autoIncrement, ExceptionState&); | 68 PassRefPtr<IDBObjectStore> createObjectStore(const String& name, const IDBKe
yPath&, bool autoIncrement, ExceptionState&); |
| 69 PassRefPtr<IDBTransaction> transaction(ExecutionContext* context, PassRefPtr
<DOMStringList> scope, const String& mode, ExceptionState& es) { return transact
ion(context, *scope, mode, es); } | 69 PassRefPtr<IDBTransaction> transaction(ExecutionContext* context, PassRefPtr
<DOMStringList> scope, const String& mode, ExceptionState& exceptionState) { ret
urn transaction(context, *scope, mode, exceptionState); } |
| 70 PassRefPtr<IDBTransaction> transaction(ExecutionContext*, const Vector<Strin
g>&, const String& mode, ExceptionState&); | 70 PassRefPtr<IDBTransaction> transaction(ExecutionContext*, const Vector<Strin
g>&, const String& mode, ExceptionState&); |
| 71 PassRefPtr<IDBTransaction> transaction(ExecutionContext*, const String&, con
st String& mode, ExceptionState&); | 71 PassRefPtr<IDBTransaction> transaction(ExecutionContext*, const String&, con
st String& mode, ExceptionState&); |
| 72 void deleteObjectStore(const String& name, ExceptionState&); | 72 void deleteObjectStore(const String& name, ExceptionState&); |
| 73 void close(); | 73 void close(); |
| 74 | 74 |
| 75 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort); | 75 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort); |
| 76 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); | 76 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); |
| 77 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); | 77 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); |
| 78 DEFINE_ATTRIBUTE_EVENT_LISTENER(versionchange); | 78 DEFINE_ATTRIBUTE_EVENT_LISTENER(versionchange); |
| 79 | 79 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 // Keep track of the versionchange events waiting to be fired on this | 139 // Keep track of the versionchange events waiting to be fired on this |
| 140 // database so that we can cancel them if the database closes. | 140 // database so that we can cancel them if the database closes. |
| 141 Vector<RefPtr<Event> > m_enqueuedEvents; | 141 Vector<RefPtr<Event> > m_enqueuedEvents; |
| 142 | 142 |
| 143 RefPtr<IDBDatabaseCallbacks> m_databaseCallbacks; | 143 RefPtr<IDBDatabaseCallbacks> m_databaseCallbacks; |
| 144 }; | 144 }; |
| 145 | 145 |
| 146 } // namespace WebCore | 146 } // namespace WebCore |
| 147 | 147 |
| 148 #endif // IDBDatabase_h | 148 #endif // IDBDatabase_h |
| OLD | NEW |