Chromium Code Reviews| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 73 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); | 73 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); |
| 74 | 74 |
| 75 void markEarlyDeath(); | 75 void markEarlyDeath(); |
| 76 void setCursorDetails(IndexedDB::CursorType, IndexedDB::CursorDirection); | 76 void setCursorDetails(IndexedDB::CursorType, IndexedDB::CursorDirection); |
| 77 void setPendingCursor(PassRefPtr<IDBCursor>); | 77 void setPendingCursor(PassRefPtr<IDBCursor>); |
| 78 void abort(); | 78 void abort(); |
| 79 | 79 |
| 80 // IDBCallbacks | 80 // IDBCallbacks |
| 81 virtual void onError(PassRefPtr<DOMError>); | 81 virtual void onError(PassRefPtr<DOMError>); |
| 82 virtual void onSuccess(const Vector<String>&); | 82 virtual void onSuccess(const Vector<String>&); |
| 83 virtual void onSuccess(PassRefPtr<IDBCursorBackendInterface>, PassRefPtr<IDB Key>, PassRefPtr<IDBKey> primaryKey, PassRefPtr<SharedBuffer>); | 83 virtual void onSuccess(PassRefPtr<IDBCursorBackendInterface>, PassRefPtr<IDB Key>, PassRefPtr<IDBKey> primaryKey, PassRefPtr<SharedBuffer>, const Vector<Blob Info>&); |
|
jsbell
2013/09/12 22:52:17
I think this becomes more readable if the tuple be
ericu
2013/11/20 23:06:08
Done.
| |
| 84 virtual void onSuccess(PassRefPtr<IDBKey>); | 84 virtual void onSuccess(PassRefPtr<IDBKey>); |
| 85 virtual void onSuccess(PassRefPtr<SharedBuffer>); | 85 virtual void onSuccess(PassRefPtr<SharedBuffer>, const Vector<BlobInfo>&); |
| 86 virtual void onSuccess(PassRefPtr<SharedBuffer>, PassRefPtr<IDBKey>, const I DBKeyPath&); | 86 virtual void onSuccess(PassRefPtr<SharedBuffer>, const Vector<BlobInfo>&, Pa ssRefPtr<IDBKey>, const IDBKeyPath&); |
| 87 virtual void onSuccess(int64_t); | 87 virtual void onSuccess(int64_t); |
| 88 virtual void onSuccess(); | 88 virtual void onSuccess(); |
| 89 virtual void onSuccess(PassRefPtr<IDBKey>, PassRefPtr<IDBKey> primaryKey, Pa ssRefPtr<SharedBuffer>); | 89 virtual void onSuccess(PassRefPtr<IDBKey>, PassRefPtr<IDBKey> primaryKey, Pa ssRefPtr<SharedBuffer>, const Vector<BlobInfo>&); |
| 90 | 90 |
| 91 // ActiveDOMObject | 91 // ActiveDOMObject |
| 92 virtual bool hasPendingActivity() const OVERRIDE; | 92 virtual bool hasPendingActivity() const OVERRIDE; |
| 93 virtual void stop() OVERRIDE; | 93 virtual void stop() OVERRIDE; |
| 94 | 94 |
| 95 // EventTarget | 95 // EventTarget |
| 96 virtual const AtomicString& interfaceName() const; | 96 virtual const AtomicString& interfaceName() const; |
| 97 virtual ScriptExecutionContext* scriptExecutionContext() const; | 97 virtual ScriptExecutionContext* scriptExecutionContext() const; |
| 98 virtual void uncaughtExceptionInEventHandler(); | 98 virtual void uncaughtExceptionInEventHandler(); |
| 99 | 99 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 132 ReadyState m_readyState; | 132 ReadyState m_readyState; |
| 133 bool m_requestAborted; // May be aborted by transaction then receive async o nsuccess; ignore vs. assert. | 133 bool m_requestAborted; // May be aborted by transaction then receive async o nsuccess; ignore vs. assert. |
| 134 | 134 |
| 135 private: | 135 private: |
| 136 // EventTarget | 136 // EventTarget |
| 137 virtual void refEventTarget() { ref(); } | 137 virtual void refEventTarget() { ref(); } |
| 138 virtual void derefEventTarget() { deref(); } | 138 virtual void derefEventTarget() { deref(); } |
| 139 virtual EventTargetData* eventTargetData(); | 139 virtual EventTargetData* eventTargetData(); |
| 140 virtual EventTargetData* ensureEventTargetData(); | 140 virtual EventTargetData* ensureEventTargetData(); |
| 141 | 141 |
| 142 void setResultCursor(PassRefPtr<IDBCursor>, PassRefPtr<IDBKey>, PassRefPtr<I DBKey> primaryKey, PassRefPtr<SharedBuffer> value); | 142 void setResultCursor(PassRefPtr<IDBCursor>, PassRefPtr<IDBKey>, PassRefPtr<I DBKey> primaryKey, PassRefPtr<SharedBuffer> value, const Vector<BlobInfo>&); |
| 143 void checkForReferenceCycle(); | 143 void checkForReferenceCycle(); |
| 144 | 144 |
| 145 | 145 |
| 146 RefPtr<IDBAny> m_source; | 146 RefPtr<IDBAny> m_source; |
| 147 const IDBDatabaseBackendInterface::TaskType m_taskType; | 147 const IDBDatabaseBackendInterface::TaskType m_taskType; |
| 148 | 148 |
| 149 bool m_hasPendingActivity; | 149 bool m_hasPendingActivity; |
| 150 Vector<RefPtr<Event> > m_enqueuedEvents; | 150 Vector<RefPtr<Event> > m_enqueuedEvents; |
| 151 | 151 |
| 152 // Only used if the result type will be a cursor. | 152 // Only used if the result type will be a cursor. |
| 153 IndexedDB::CursorType m_cursorType; | 153 IndexedDB::CursorType m_cursorType; |
| 154 IndexedDB::CursorDirection m_cursorDirection; | 154 IndexedDB::CursorDirection m_cursorDirection; |
| 155 RefPtr<IDBCursor> m_pendingCursor; | 155 RefPtr<IDBCursor> m_pendingCursor; |
| 156 RefPtr<IDBKey> m_cursorKey; | 156 RefPtr<IDBKey> m_cursorKey; |
| 157 RefPtr<IDBKey> m_cursorPrimaryKey; | 157 RefPtr<IDBKey> m_cursorPrimaryKey; |
| 158 RefPtr<SharedBuffer> m_cursorValue; | 158 RefPtr<SharedBuffer> m_cursorValue; |
| 159 Vector<BlobInfo> m_cursorBlobInfo; | |
| 159 bool m_didFireUpgradeNeededEvent; | 160 bool m_didFireUpgradeNeededEvent; |
| 160 bool m_preventPropagation; | 161 bool m_preventPropagation; |
| 161 | 162 |
| 162 EventTargetData m_eventTargetData; | 163 EventTargetData m_eventTargetData; |
| 163 DOMRequestState m_requestState; | 164 DOMRequestState m_requestState; |
| 164 }; | 165 }; |
| 165 | 166 |
| 166 } // namespace WebCore | 167 } // namespace WebCore |
| 167 | 168 |
| 168 #endif // IDBRequest_h | 169 #endif // IDBRequest_h |
| OLD | NEW |