| 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 m_pendingCursor.clear(); | 250 m_pendingCursor.clear(); |
| 251 enqueueEvent(Event::createCancelableBubble(EventTypeNames::error)); | 251 enqueueEvent(Event::createCancelableBubble(EventTypeNames::error)); |
| 252 } | 252 } |
| 253 | 253 |
| 254 void IDBRequest::onSuccess(const Vector<String>& stringList) | 254 void IDBRequest::onSuccess(const Vector<String>& stringList) |
| 255 { | 255 { |
| 256 IDB_TRACE("IDBRequest::onSuccess(StringList)"); | 256 IDB_TRACE("IDBRequest::onSuccess(StringList)"); |
| 257 if (!shouldEnqueueEvent()) | 257 if (!shouldEnqueueEvent()) |
| 258 return; | 258 return; |
| 259 | 259 |
| 260 RefPtr<DOMStringList> domStringList = DOMStringList::create(); | 260 RefPtrWillBeRawPtr<DOMStringList> domStringList = DOMStringList::create(); |
| 261 for (size_t i = 0; i < stringList.size(); ++i) | 261 for (size_t i = 0; i < stringList.size(); ++i) |
| 262 domStringList->append(stringList[i]); | 262 domStringList->append(stringList[i]); |
| 263 onSuccessInternal(IDBAny::create(domStringList.release())); | 263 onSuccessInternal(IDBAny::create(domStringList.release())); |
| 264 } | 264 } |
| 265 | 265 |
| 266 void IDBRequest::onSuccess(PassOwnPtr<blink::WebIDBCursor> backend, PassRefPtr<I
DBKey> key, PassRefPtr<IDBKey> primaryKey, PassRefPtr<SharedBuffer> value, PassO
wnPtr<Vector<blink::WebBlobInfo> > blobInfo) | 266 void IDBRequest::onSuccess(PassOwnPtr<blink::WebIDBCursor> backend, PassRefPtr<I
DBKey> key, PassRefPtr<IDBKey> primaryKey, PassRefPtr<SharedBuffer> value, PassO
wnPtr<Vector<blink::WebBlobInfo> > blobInfo) |
| 267 { | 267 { |
| 268 IDB_TRACE("IDBRequest::onSuccess(IDBCursor)"); | 268 IDB_TRACE("IDBRequest::onSuccess(IDBCursor)"); |
| 269 if (!shouldEnqueueEvent()) | 269 if (!shouldEnqueueEvent()) |
| 270 return; | 270 return; |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 | 554 |
| 555 void IDBRequest::dequeueEvent(Event* event) | 555 void IDBRequest::dequeueEvent(Event* event) |
| 556 { | 556 { |
| 557 for (size_t i = 0; i < m_enqueuedEvents.size(); ++i) { | 557 for (size_t i = 0; i < m_enqueuedEvents.size(); ++i) { |
| 558 if (m_enqueuedEvents[i].get() == event) | 558 if (m_enqueuedEvents[i].get() == event) |
| 559 m_enqueuedEvents.remove(i); | 559 m_enqueuedEvents.remove(i); |
| 560 } | 560 } |
| 561 } | 561 } |
| 562 | 562 |
| 563 } // namespace WebCore | 563 } // namespace WebCore |
| OLD | NEW |