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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; |
110 } | 110 } |
111 | 111 |
112 // Will return nullptr if this database is stopped. | 112 // Will return nullptr if this database is stopped. |
113 blink::WebIDBDatabase* backend() const { return m_backend.get(); } | 113 blink::WebIDBDatabase* backend() const { return m_backend.get(); } |
114 | 114 |
115 static int64_t nextTransactionId(); | 115 static int64_t nextTransactionId(); |
116 | 116 |
| 117 void ackReceivedBlobs(const Vector<blink::WebBlobInfo>*); |
| 118 |
117 static const char indexDeletedErrorMessage[]; | 119 static const char indexDeletedErrorMessage[]; |
118 static const char isKeyCursorErrorMessage[]; | 120 static const char isKeyCursorErrorMessage[]; |
119 static const char noKeyOrKeyRangeErrorMessage[]; | 121 static const char noKeyOrKeyRangeErrorMessage[]; |
120 static const char noSuchIndexErrorMessage[]; | 122 static const char noSuchIndexErrorMessage[]; |
121 static const char noSuchObjectStoreErrorMessage[]; | 123 static const char noSuchObjectStoreErrorMessage[]; |
122 static const char noValueErrorMessage[]; | 124 static const char noValueErrorMessage[]; |
123 static const char notValidKeyErrorMessage[]; | 125 static const char notValidKeyErrorMessage[]; |
124 static const char notVersionChangeTransactionErrorMessage[]; | 126 static const char notVersionChangeTransactionErrorMessage[]; |
125 static const char objectStoreDeletedErrorMessage[]; | 127 static const char objectStoreDeletedErrorMessage[]; |
126 static const char requestNotFinishedErrorMessage[]; | 128 static const char requestNotFinishedErrorMessage[]; |
(...skipping 20 matching lines...) Expand all Loading... |
147 // Keep track of the versionchange events waiting to be fired on this | 149 // Keep track of the versionchange events waiting to be fired on this |
148 // database so that we can cancel them if the database closes. | 150 // database so that we can cancel them if the database closes. |
149 WillBePersistentHeapVector<RefPtrWillBeMember<Event> > m_enqueuedEvents; | 151 WillBePersistentHeapVector<RefPtrWillBeMember<Event> > m_enqueuedEvents; |
150 | 152 |
151 RefPtr<IDBDatabaseCallbacks> m_databaseCallbacks; | 153 RefPtr<IDBDatabaseCallbacks> m_databaseCallbacks; |
152 }; | 154 }; |
153 | 155 |
154 } // namespace WebCore | 156 } // namespace WebCore |
155 | 157 |
156 #endif // IDBDatabase_h | 158 #endif // IDBDatabase_h |
OLD | NEW |