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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 static const char noValueErrorMessage[]; | 121 static const char noValueErrorMessage[]; |
122 static const char notValidKeyErrorMessage[]; | 122 static const char notValidKeyErrorMessage[]; |
123 static const char notVersionChangeTransactionErrorMessage[]; | 123 static const char notVersionChangeTransactionErrorMessage[]; |
124 static const char objectStoreDeletedErrorMessage[]; | 124 static const char objectStoreDeletedErrorMessage[]; |
125 static const char requestNotFinishedErrorMessage[]; | 125 static const char requestNotFinishedErrorMessage[]; |
126 static const char sourceDeletedErrorMessage[]; | 126 static const char sourceDeletedErrorMessage[]; |
127 static const char transactionFinishedErrorMessage[]; | 127 static const char transactionFinishedErrorMessage[]; |
128 static const char transactionInactiveErrorMessage[]; | 128 static const char transactionInactiveErrorMessage[]; |
129 static const char transactionReadOnlyErrorMessage[]; | 129 static const char transactionReadOnlyErrorMessage[]; |
130 static const char databaseClosedErrorMessage[]; | 130 static const char databaseClosedErrorMessage[]; |
131 static const char notValidMaxCountErrorMessage[]; | |
132 | 131 |
133 protected: | 132 protected: |
134 // EventTarget | 133 // EventTarget |
135 bool dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>) override; | 134 bool dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>) override; |
136 | 135 |
137 private: | 136 private: |
138 IDBDatabase(ExecutionContext*, PassOwnPtr<WebIDBDatabase>, IDBDatabaseCallba
cks*); | 137 IDBDatabase(ExecutionContext*, PassOwnPtr<WebIDBDatabase>, IDBDatabaseCallba
cks*); |
139 | 138 |
140 IDBObjectStore* createObjectStore(const String& name, const IDBKeyPath&, boo
l autoIncrement, ExceptionState&); | 139 IDBObjectStore* createObjectStore(const String& name, const IDBKeyPath&, boo
l autoIncrement, ExceptionState&); |
141 void closeConnection(); | 140 void closeConnection(); |
(...skipping 10 matching lines...) Expand all Loading... |
152 // Keep track of the versionchange events waiting to be fired on this | 151 // Keep track of the versionchange events waiting to be fired on this |
153 // database so that we can cancel them if the database closes. | 152 // database so that we can cancel them if the database closes. |
154 WillBeHeapVector<RefPtrWillBeMember<Event>> m_enqueuedEvents; | 153 WillBeHeapVector<RefPtrWillBeMember<Event>> m_enqueuedEvents; |
155 | 154 |
156 Member<IDBDatabaseCallbacks> m_databaseCallbacks; | 155 Member<IDBDatabaseCallbacks> m_databaseCallbacks; |
157 }; | 156 }; |
158 | 157 |
159 } // namespace blink | 158 } // namespace blink |
160 | 159 |
161 #endif // IDBDatabase_h | 160 #endif // IDBDatabase_h |
OLD | NEW |