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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 // IDBDatabaseCallbacks | 105 // IDBDatabaseCallbacks |
106 void onVersionChange(int64_t oldVersion, int64_t newVersion); | 106 void onVersionChange(int64_t oldVersion, int64_t newVersion); |
107 void onAbort(int64_t, DOMException*); | 107 void onAbort(int64_t, DOMException*); |
108 void onComplete(int64_t); | 108 void onComplete(int64_t); |
109 | 109 |
110 // ScriptWrappable | 110 // ScriptWrappable |
111 bool hasPendingActivity() const final; | 111 bool hasPendingActivity() const final; |
112 | 112 |
113 // ActiveDOMObject | 113 // ActiveDOMObject |
114 void stop() override; | 114 void contextDestroyed() override; |
115 | 115 |
116 // EventTarget | 116 // EventTarget |
117 const AtomicString& interfaceName() const override; | 117 const AtomicString& interfaceName() const override; |
118 ExecutionContext* getExecutionContext() const override; | 118 ExecutionContext* getExecutionContext() const override; |
119 | 119 |
120 bool isClosePending() const { return m_closePending; } | 120 bool isClosePending() const { return m_closePending; } |
121 void forceClose(); | 121 void forceClose(); |
122 const IDBDatabaseMetadata& metadata() const { return m_metadata; } | 122 const IDBDatabaseMetadata& metadata() const { return m_metadata; } |
123 void enqueueEvent(Event*); | 123 void enqueueEvent(Event*); |
124 | 124 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 // Keep track of the versionchange events waiting to be fired on this | 179 // Keep track of the versionchange events waiting to be fired on this |
180 // database so that we can cancel them if the database closes. | 180 // database so that we can cancel them if the database closes. |
181 HeapVector<Member<Event>> m_enqueuedEvents; | 181 HeapVector<Member<Event>> m_enqueuedEvents; |
182 | 182 |
183 Member<IDBDatabaseCallbacks> m_databaseCallbacks; | 183 Member<IDBDatabaseCallbacks> m_databaseCallbacks; |
184 }; | 184 }; |
185 | 185 |
186 } // namespace blink | 186 } // namespace blink |
187 | 187 |
188 #endif // IDBDatabase_h | 188 #endif // IDBDatabase_h |
OLD | NEW |