| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 126 |
| 127 IDBCursor* getResultCursor() const; | 127 IDBCursor* getResultCursor() const; |
| 128 | 128 |
| 129 protected: | 129 protected: |
| 130 IDBRequest(ScriptState*, IDBAny* source, IDBTransaction*); | 130 IDBRequest(ScriptState*, IDBAny* source, IDBTransaction*); |
| 131 void enqueueEvent(PassRefPtrWillBeRawPtr<Event>); | 131 void enqueueEvent(PassRefPtrWillBeRawPtr<Event>); |
| 132 void dequeueEvent(Event*); | 132 void dequeueEvent(Event*); |
| 133 virtual bool shouldEnqueueEvent() const; | 133 virtual bool shouldEnqueueEvent() const; |
| 134 void onSuccessInternal(IDBAny*); | 134 void onSuccessInternal(IDBAny*); |
| 135 void setResult(IDBAny*); | 135 void setResult(IDBAny*); |
| 136 ScriptState* scriptState() { return m_scriptState.get(); } |
| 136 | 137 |
| 137 bool m_contextStopped; | 138 bool m_contextStopped; |
| 138 Member<IDBTransaction> m_transaction; | 139 Member<IDBTransaction> m_transaction; |
| 139 ReadyState m_readyState; | 140 ReadyState m_readyState; |
| 140 bool m_requestAborted; // May be aborted by transaction then receive async o
nsuccess; ignore vs. assert. | 141 bool m_requestAborted; // May be aborted by transaction then receive async o
nsuccess; ignore vs. assert. |
| 141 | 142 |
| 142 private: | 143 private: |
| 143 void setResultCursor(IDBCursor*, IDBKey*, IDBKey* primaryKey, PassRefPtr<Sha
redBuffer> value, PassOwnPtr<Vector<WebBlobInfo> >); | 144 void setResultCursor(IDBCursor*, IDBKey*, IDBKey* primaryKey, PassRefPtr<Sha
redBuffer> value, PassOwnPtr<Vector<WebBlobInfo> >); |
| 144 void handleBlobAcks(); | 145 void handleBlobAcks(); |
| 145 | 146 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 163 OwnPtr<Vector<WebBlobInfo> > m_blobInfo; | 164 OwnPtr<Vector<WebBlobInfo> > m_blobInfo; |
| 164 | 165 |
| 165 bool m_didFireUpgradeNeededEvent; | 166 bool m_didFireUpgradeNeededEvent; |
| 166 bool m_preventPropagation; | 167 bool m_preventPropagation; |
| 167 bool m_resultDirty; | 168 bool m_resultDirty; |
| 168 }; | 169 }; |
| 169 | 170 |
| 170 } // namespace blink | 171 } // namespace blink |
| 171 | 172 |
| 172 #endif // IDBRequest_h | 173 #endif // IDBRequest_h |
| OLD | NEW |