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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 void continueFunction(ScriptExecutionContext*, const ScriptValue& key, Excep
tionState&); | 71 void continueFunction(ScriptExecutionContext*, const ScriptValue& key, Excep
tionState&); |
72 PassRefPtr<IDBRequest> deleteFunction(ScriptExecutionContext*, ExceptionStat
e&); | 72 PassRefPtr<IDBRequest> deleteFunction(ScriptExecutionContext*, ExceptionStat
e&); |
73 | 73 |
74 bool isKeyDirty() const { return m_keyDirty; } | 74 bool isKeyDirty() const { return m_keyDirty; } |
75 bool isPrimaryKeyDirty() const { return m_primaryKeyDirty; } | 75 bool isPrimaryKeyDirty() const { return m_primaryKeyDirty; } |
76 bool isValueDirty() const { return m_valueDirty; } | 76 bool isValueDirty() const { return m_valueDirty; } |
77 | 77 |
78 void continueFunction(PassRefPtr<IDBKey>, ExceptionState&); | 78 void continueFunction(PassRefPtr<IDBKey>, ExceptionState&); |
79 void postSuccessHandlerCallback(); | 79 void postSuccessHandlerCallback(); |
80 void close(); | 80 void close(); |
81 void setValueReady(PassRefPtr<IDBKey>, PassRefPtr<IDBKey> primaryKey, PassRe
fPtr<SharedBuffer> value); | 81 void setValueReady(PassRefPtr<IDBKey>, PassRefPtr<IDBKey> primaryKey, PassRe
fPtr<SharedBuffer> value, Vector<BlobInfo>&); |
82 PassRefPtr<IDBKey> idbPrimaryKey() { return m_primaryKey; } | 82 PassRefPtr<IDBKey> idbPrimaryKey() { return m_primaryKey; } |
83 IDBRequest* request() { return m_request.get(); } | 83 IDBRequest* request() { return m_request.get(); } |
84 | 84 |
85 void deref() | 85 void deref() |
86 { | 86 { |
87 if (derefBase()) | 87 if (derefBase()) |
88 delete this; | 88 delete this; |
89 else if (hasOneRef()) | 89 else if (hasOneRef()) |
90 checkForReferenceCycle(); | 90 checkForReferenceCycle(); |
91 } | 91 } |
(...skipping 13 matching lines...) Expand all Loading... |
105 const IndexedDB::CursorDirection m_direction; | 105 const IndexedDB::CursorDirection m_direction; |
106 RefPtr<IDBAny> m_source; | 106 RefPtr<IDBAny> m_source; |
107 RefPtr<IDBTransaction> m_transaction; | 107 RefPtr<IDBTransaction> m_transaction; |
108 bool m_gotValue; | 108 bool m_gotValue; |
109 bool m_keyDirty; | 109 bool m_keyDirty; |
110 bool m_primaryKeyDirty; | 110 bool m_primaryKeyDirty; |
111 bool m_valueDirty; | 111 bool m_valueDirty; |
112 RefPtr<IDBKey> m_key; | 112 RefPtr<IDBKey> m_key; |
113 RefPtr<IDBKey> m_primaryKey; | 113 RefPtr<IDBKey> m_primaryKey; |
114 RefPtr<SharedBuffer> m_value; | 114 RefPtr<SharedBuffer> m_value; |
| 115 Vector<BlobInfo> m_blobInfo; |
115 }; | 116 }; |
116 | 117 |
117 } // namespace WebCore | 118 } // namespace WebCore |
118 | 119 |
119 #endif // IDBCursor_h | 120 #endif // IDBCursor_h |
OLD | NEW |