| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 void onVersionChange(int64_t oldVersion, int64_t newVersion); | 89 void onVersionChange(int64_t oldVersion, int64_t newVersion); |
| 90 void onAbort(int64_t, DOMException*); | 90 void onAbort(int64_t, DOMException*); |
| 91 void onComplete(int64_t); | 91 void onComplete(int64_t); |
| 92 | 92 |
| 93 // ActiveDOMObject | 93 // ActiveDOMObject |
| 94 bool hasPendingActivity() const override; | 94 bool hasPendingActivity() const override; |
| 95 void stop() override; | 95 void stop() override; |
| 96 | 96 |
| 97 // EventTarget | 97 // EventTarget |
| 98 const AtomicString& interfaceName() const override; | 98 const AtomicString& interfaceName() const override; |
| 99 ExecutionContext* executionContext() const override; | 99 ExecutionContext* getExecutionContext() const override; |
| 100 | 100 |
| 101 bool isClosePending() const { return m_closePending; } | 101 bool isClosePending() const { return m_closePending; } |
| 102 void forceClose(); | 102 void forceClose(); |
| 103 const IDBDatabaseMetadata& metadata() const { return m_metadata; } | 103 const IDBDatabaseMetadata& metadata() const { return m_metadata; } |
| 104 void enqueueEvent(PassRefPtrWillBeRawPtr<Event>); | 104 void enqueueEvent(PassRefPtrWillBeRawPtr<Event>); |
| 105 | 105 |
| 106 int64_t findObjectStoreId(const String& name) const; | 106 int64_t findObjectStoreId(const String& name) const; |
| 107 bool containsObjectStore(const String& name) const | 107 bool containsObjectStore(const String& name) const |
| 108 { | 108 { |
| 109 return findObjectStoreId(name) != IDBObjectStoreMetadata::InvalidId; | 109 return findObjectStoreId(name) != IDBObjectStoreMetadata::InvalidId; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 // Keep track of the versionchange events waiting to be fired on this | 153 // Keep track of the versionchange events waiting to be fired on this |
| 154 // database so that we can cancel them if the database closes. | 154 // database so that we can cancel them if the database closes. |
| 155 WillBeHeapVector<RefPtrWillBeMember<Event>> m_enqueuedEvents; | 155 WillBeHeapVector<RefPtrWillBeMember<Event>> m_enqueuedEvents; |
| 156 | 156 |
| 157 Member<IDBDatabaseCallbacks> m_databaseCallbacks; | 157 Member<IDBDatabaseCallbacks> m_databaseCallbacks; |
| 158 }; | 158 }; |
| 159 | 159 |
| 160 } // namespace blink | 160 } // namespace blink |
| 161 | 161 |
| 162 #endif // IDBDatabase_h | 162 #endif // IDBDatabase_h |
| OLD | NEW |