| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 void setMetadata(const IDBDatabaseMetadata& metadata) { m_metadata = metadat
a; } | 66 void setMetadata(const IDBDatabaseMetadata& metadata) { m_metadata = metadat
a; } |
| 67 void indexCreated(int64_t objectStoreId, const IDBIndexMetadata&); | 67 void indexCreated(int64_t objectStoreId, const IDBIndexMetadata&); |
| 68 void indexDeleted(int64_t objectStoreId, int64_t indexId); | 68 void indexDeleted(int64_t objectStoreId, int64_t indexId); |
| 69 void transactionCreated(IDBTransaction*); | 69 void transactionCreated(IDBTransaction*); |
| 70 void transactionFinished(const IDBTransaction*); | 70 void transactionFinished(const IDBTransaction*); |
| 71 | 71 |
| 72 // Implement the IDL | 72 // Implement the IDL |
| 73 const String& name() const { return m_metadata.name; } | 73 const String& name() const { return m_metadata.name; } |
| 74 ScriptValue version(ScriptState*) const; | 74 ScriptValue version(ScriptState*) const; |
| 75 PassRefPtr<DOMStringList> objectStoreNames() const; | 75 PassRefPtrWillBeRawPtr<DOMStringList> objectStoreNames() const; |
| 76 | 76 |
| 77 PassRefPtrWillBeRawPtr<IDBObjectStore> createObjectStore(const String& name,
const Dictionary&, ExceptionState&); | 77 PassRefPtrWillBeRawPtr<IDBObjectStore> createObjectStore(const String& name,
const Dictionary&, ExceptionState&); |
| 78 PassRefPtrWillBeRawPtr<IDBObjectStore> createObjectStore(const String& name,
const IDBKeyPath&, bool autoIncrement, ExceptionState&); | 78 PassRefPtrWillBeRawPtr<IDBObjectStore> createObjectStore(const String& name,
const IDBKeyPath&, bool autoIncrement, ExceptionState&); |
| 79 PassRefPtrWillBeRawPtr<IDBTransaction> transaction(ExecutionContext* context
, PassRefPtr<DOMStringList> scope, const String& mode, ExceptionState& exception
State) { return transaction(context, *scope, mode, exceptionState); } | 79 PassRefPtrWillBeRawPtr<IDBTransaction> transaction(ExecutionContext* context
, PassRefPtrWillBeRawPtr<DOMStringList> scope, const String& mode, ExceptionStat
e& exceptionState) { return transaction(context, *scope, mode, exceptionState);
} |
| 80 PassRefPtrWillBeRawPtr<IDBTransaction> transaction(ExecutionContext*, const
Vector<String>&, const String& mode, ExceptionState&); | 80 PassRefPtrWillBeRawPtr<IDBTransaction> transaction(ExecutionContext*, const
Vector<String>&, const String& mode, ExceptionState&); |
| 81 PassRefPtrWillBeRawPtr<IDBTransaction> transaction(ExecutionContext*, const
String&, const String& mode, ExceptionState&); | 81 PassRefPtrWillBeRawPtr<IDBTransaction> transaction(ExecutionContext*, const
String&, const String& mode, ExceptionState&); |
| 82 void deleteObjectStore(const String& name, ExceptionState&); | 82 void deleteObjectStore(const String& name, ExceptionState&); |
| 83 void close(); | 83 void close(); |
| 84 | 84 |
| 85 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort); | 85 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort); |
| 86 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); | 86 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); |
| 87 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); | 87 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); |
| 88 DEFINE_ATTRIBUTE_EVENT_LISTENER(versionchange); | 88 DEFINE_ATTRIBUTE_EVENT_LISTENER(versionchange); |
| 89 | 89 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 // Keep track of the versionchange events waiting to be fired on this | 154 // Keep track of the versionchange events waiting to be fired on this |
| 155 // database so that we can cancel them if the database closes. | 155 // database so that we can cancel them if the database closes. |
| 156 WillBeHeapVector<RefPtrWillBeMember<Event> > m_enqueuedEvents; | 156 WillBeHeapVector<RefPtrWillBeMember<Event> > m_enqueuedEvents; |
| 157 | 157 |
| 158 RefPtrWillBeMember<IDBDatabaseCallbacks> m_databaseCallbacks; | 158 RefPtrWillBeMember<IDBDatabaseCallbacks> m_databaseCallbacks; |
| 159 }; | 159 }; |
| 160 | 160 |
| 161 } // namespace WebCore | 161 } // namespace WebCore |
| 162 | 162 |
| 163 #endif // IDBDatabase_h | 163 #endif // IDBDatabase_h |
| OLD | NEW |