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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 class IDBDatabase : public RefCountedGarbageCollected<IDBDatabase>, public Scrip
tWrappable, public EventTarget, public ActiveDOMObject { | 50 class IDBDatabase : public RefCountedGarbageCollected<IDBDatabase>, public Scrip
tWrappable, public EventTarget, public ActiveDOMObject { |
51 DECLARE_GC_INFO | 51 DECLARE_GC_INFO |
52 DEFINE_SELF_HANDLE(IDBDatabase) | 52 DEFINE_SELF_HANDLE(IDBDatabase) |
53 public: | 53 public: |
54 static IDBDatabase* create(ScriptExecutionContext*, IDBDatabaseBackendInterf
ace*, IDBDatabaseCallbacks*); | 54 static IDBDatabase* create(ScriptExecutionContext*, IDBDatabaseBackendInterf
ace*, IDBDatabaseCallbacks*); |
55 ~IDBDatabase(); | 55 ~IDBDatabase(); |
56 | 56 |
57 virtual void trace(Visitor*); | 57 virtual void trace(Visitor*); |
58 | 58 |
59 virtual void visitWith(Visitor* visitor) const OVERRIDE | 59 virtual void adjustAndMark(Visitor* visitor) const OVERRIDE |
60 { | 60 { |
61 visitor->visit(this); | 61 visitor->mark(this); |
62 } | 62 } |
63 | 63 |
64 void setMetadata(const IDBDatabaseMetadata& metadata) { m_metadata = metadat
a; } | 64 void setMetadata(const IDBDatabaseMetadata& metadata) { m_metadata = metadat
a; } |
65 void indexCreated(int64_t objectStoreId, const IDBIndexMetadata&); | 65 void indexCreated(int64_t objectStoreId, const IDBIndexMetadata&); |
66 void indexDeleted(int64_t objectStoreId, int64_t indexId); | 66 void indexDeleted(int64_t objectStoreId, int64_t indexId); |
67 void transactionCreated(IDBTransaction*); | 67 void transactionCreated(IDBTransaction*); |
68 void transactionFinished(IDBTransaction*); | 68 void transactionFinished(IDBTransaction*); |
69 | 69 |
70 // Implement the IDL | 70 // Implement the IDL |
71 const String name() const { return m_metadata.name; } | 71 const String name() const { return m_metadata.name; } |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 // Keep track of the versionchange events waiting to be fired on this | 141 // Keep track of the versionchange events waiting to be fired on this |
142 // database so that we can cancel them if the database closes. | 142 // database so that we can cancel them if the database closes. |
143 Vector<RefPtr<Event> > m_enqueuedEvents; | 143 Vector<RefPtr<Event> > m_enqueuedEvents; |
144 | 144 |
145 Member<IDBDatabaseCallbacks> m_databaseCallbacks; | 145 Member<IDBDatabaseCallbacks> m_databaseCallbacks; |
146 }; | 146 }; |
147 | 147 |
148 } // namespace WebCore | 148 } // namespace WebCore |
149 | 149 |
150 #endif // IDBDatabase_h | 150 #endif // IDBDatabase_h |
OLD | NEW |