| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 class DOMError; | 48 class DOMError; |
| 49 class ExceptionState; | 49 class ExceptionState; |
| 50 class ExecutionContext; | 50 class ExecutionContext; |
| 51 | 51 |
| 52 class IDBDatabase FINAL | 52 class IDBDatabase FINAL |
| 53 : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<IDBDataba
se> | 53 : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<IDBDataba
se> |
| 54 , public EventTargetWithInlineData | 54 , public EventTargetWithInlineData |
| 55 , public ActiveDOMObject { | 55 , public ActiveDOMObject { |
| 56 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<I
DBDatabase>); | 56 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<I
DBDatabase>); |
| 57 DEFINE_WRAPPERTYPEINFO(); |
| 57 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(IDBDatabase); | 58 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(IDBDatabase); |
| 58 public: | 59 public: |
| 59 static IDBDatabase* create(ExecutionContext*, PassOwnPtr<WebIDBDatabase>, ID
BDatabaseCallbacks*); | 60 static IDBDatabase* create(ExecutionContext*, PassOwnPtr<WebIDBDatabase>, ID
BDatabaseCallbacks*); |
| 60 virtual ~IDBDatabase(); | 61 virtual ~IDBDatabase(); |
| 61 virtual void trace(Visitor*) OVERRIDE; | 62 virtual void trace(Visitor*) OVERRIDE; |
| 62 | 63 |
| 63 void setMetadata(const IDBDatabaseMetadata& metadata) { m_metadata = metadat
a; } | 64 void setMetadata(const IDBDatabaseMetadata& metadata) { m_metadata = metadat
a; } |
| 64 void indexCreated(int64_t objectStoreId, const IDBIndexMetadata&); | 65 void indexCreated(int64_t objectStoreId, const IDBIndexMetadata&); |
| 65 void indexDeleted(int64_t objectStoreId, int64_t indexId); | 66 void indexDeleted(int64_t objectStoreId, int64_t indexId); |
| 66 void transactionCreated(IDBTransaction*); | 67 void transactionCreated(IDBTransaction*); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 // Keep track of the versionchange events waiting to be fired on this | 152 // Keep track of the versionchange events waiting to be fired on this |
| 152 // database so that we can cancel them if the database closes. | 153 // database so that we can cancel them if the database closes. |
| 153 WillBeHeapVector<RefPtrWillBeMember<Event> > m_enqueuedEvents; | 154 WillBeHeapVector<RefPtrWillBeMember<Event> > m_enqueuedEvents; |
| 154 | 155 |
| 155 Member<IDBDatabaseCallbacks> m_databaseCallbacks; | 156 Member<IDBDatabaseCallbacks> m_databaseCallbacks; |
| 156 }; | 157 }; |
| 157 | 158 |
| 158 } // namespace blink | 159 } // namespace blink |
| 159 | 160 |
| 160 #endif // IDBDatabase_h | 161 #endif // IDBDatabase_h |
| OLD | NEW |