| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 DOMStringList* objectStoreNames() const; | 79 DOMStringList* objectStoreNames() const; |
| 80 IDBDatabase* db() const { return m_database.get(); } | 80 IDBDatabase* db() const { return m_database.get(); } |
| 81 DOMException* error() const { return m_error; } | 81 DOMException* error() const { return m_error; } |
| 82 IDBObjectStore* objectStore(const String& name, ExceptionState&); | 82 IDBObjectStore* objectStore(const String& name, ExceptionState&); |
| 83 void abort(ExceptionState&); | 83 void abort(ExceptionState&); |
| 84 | 84 |
| 85 void registerRequest(IDBRequest*); | 85 void registerRequest(IDBRequest*); |
| 86 void unregisterRequest(IDBRequest*); | 86 void unregisterRequest(IDBRequest*); |
| 87 void objectStoreCreated(const String&, IDBObjectStore*); | 87 void objectStoreCreated(const String&, IDBObjectStore*); |
| 88 void objectStoreDeleted(const String&); | 88 void objectStoreDeleted(const String&); |
| 89 void objectStoreWillBeRenamed(const String& oldName, const String& newName); |
| 89 void setActive(bool); | 90 void setActive(bool); |
| 90 void setError(DOMException*); | 91 void setError(DOMException*); |
| 91 | 92 |
| 92 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort); | 93 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort); |
| 93 DEFINE_ATTRIBUTE_EVENT_LISTENER(complete); | 94 DEFINE_ATTRIBUTE_EVENT_LISTENER(complete); |
| 94 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); | 95 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); |
| 95 | 96 |
| 96 void onAbort(DOMException*); | 97 void onAbort(DOMException*); |
| 97 void onComplete(); | 98 void onComplete(); |
| 98 | 99 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 | 148 |
| 148 // Holds stores created, deleted, or used during upgrade transactions to | 149 // Holds stores created, deleted, or used during upgrade transactions to |
| 149 // reset metadata in case of abort. | 150 // reset metadata in case of abort. |
| 150 HeapHashMap<Member<IDBObjectStore>, IDBObjectStoreMetadata> m_objectStoreCle
anupMap; | 151 HeapHashMap<Member<IDBObjectStore>, IDBObjectStoreMetadata> m_objectStoreCle
anupMap; |
| 151 IDBDatabaseMetadata m_previousMetadata; | 152 IDBDatabaseMetadata m_previousMetadata; |
| 152 }; | 153 }; |
| 153 | 154 |
| 154 } // namespace blink | 155 } // namespace blink |
| 155 | 156 |
| 156 #endif // IDBTransaction_h | 157 #endif // IDBTransaction_h |
| OLD | NEW |