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