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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 } | 161 } |
162 | 162 |
163 void IDBDatabase::onComplete(int64_t transactionId) | 163 void IDBDatabase::onComplete(int64_t transactionId) |
164 { | 164 { |
165 ASSERT(m_transactions.contains(transactionId)); | 165 ASSERT(m_transactions.contains(transactionId)); |
166 m_transactions.get(transactionId)->onComplete(); | 166 m_transactions.get(transactionId)->onComplete(); |
167 } | 167 } |
168 | 168 |
169 PassRefPtrWillBeRawPtr<DOMStringList> IDBDatabase::objectStoreNames() const | 169 PassRefPtrWillBeRawPtr<DOMStringList> IDBDatabase::objectStoreNames() const |
170 { | 170 { |
171 RefPtrWillBeRawPtr<DOMStringList> objectStoreNames = DOMStringList::create()
; | 171 RefPtrWillBeRawPtr<DOMStringList> objectStoreNames = DOMStringList::create(D
OMStringList::IndexedDB); |
172 for (IDBDatabaseMetadata::ObjectStoreMap::const_iterator it = m_metadata.obj
ectStores.begin(); it != m_metadata.objectStores.end(); ++it) | 172 for (IDBDatabaseMetadata::ObjectStoreMap::const_iterator it = m_metadata.obj
ectStores.begin(); it != m_metadata.objectStores.end(); ++it) |
173 objectStoreNames->append(it->value.name); | 173 objectStoreNames->append(it->value.name); |
174 objectStoreNames->sort(); | 174 objectStoreNames->sort(); |
175 return objectStoreNames.release(); | 175 return objectStoreNames.release(); |
176 } | 176 } |
177 | 177 |
178 void IDBDatabase::version(UnsignedLongLongOrString& result) const | 178 void IDBDatabase::version(UnsignedLongLongOrString& result) const |
179 { | 179 { |
180 if (m_metadata.intVersion == IDBDatabaseMetadata::NoIntVersion) | 180 if (m_metadata.intVersion == IDBDatabaseMetadata::NoIntVersion) |
181 result.setString(m_metadata.version); | 181 result.setString(m_metadata.version); |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 { | 453 { |
454 return EventTargetNames::IDBDatabase; | 454 return EventTargetNames::IDBDatabase; |
455 } | 455 } |
456 | 456 |
457 ExecutionContext* IDBDatabase::executionContext() const | 457 ExecutionContext* IDBDatabase::executionContext() const |
458 { | 458 { |
459 return ActiveDOMObject::executionContext(); | 459 return ActiveDOMObject::executionContext(); |
460 } | 460 } |
461 | 461 |
462 } // namespace blink | 462 } // namespace blink |
OLD | NEW |