| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 void trace(Visitor*); | 64 void trace(Visitor*); |
| 65 void contextWillBeDestroyed() { m_backend.clear(); } | 65 void contextWillBeDestroyed() { m_backend.clear(); } |
| 66 | 66 |
| 67 // Implement the IDL | 67 // Implement the IDL |
| 68 const String& direction() const { return directionToString(m_direction); } | 68 const String& direction() const { return directionToString(m_direction); } |
| 69 ScriptValue key(ScriptState*); | 69 ScriptValue key(ScriptState*); |
| 70 ScriptValue primaryKey(ScriptState*); | 70 ScriptValue primaryKey(ScriptState*); |
| 71 ScriptValue value(ScriptState*); | 71 ScriptValue value(ScriptState*); |
| 72 ScriptValue source(ScriptState*) const; | 72 ScriptValue source(ScriptState*) const; |
| 73 | 73 |
| 74 IDBRequest* update(ExecutionContext*, ScriptValue&, ExceptionState&); | 74 IDBRequest* update(ScriptState*, ScriptValue&, ExceptionState&); |
| 75 void advance(unsigned long, ExceptionState&); | 75 void advance(unsigned long, ExceptionState&); |
| 76 void continueFunction(ExecutionContext*, const ScriptValue& key, ExceptionSt
ate&); | 76 void continueFunction(ScriptState*, const ScriptValue& key, ExceptionState&)
; |
| 77 void continuePrimaryKey(ExecutionContext*, const ScriptValue& key, const Scr
iptValue& primaryKey, ExceptionState&); | 77 void continuePrimaryKey(ScriptState*, const ScriptValue& key, const ScriptVa
lue& primaryKey, ExceptionState&); |
| 78 IDBRequest* deleteFunction(ExecutionContext*, ExceptionState&); | 78 IDBRequest* deleteFunction(ScriptState*, ExceptionState&); |
| 79 | 79 |
| 80 bool isKeyDirty() const { return m_keyDirty; } | 80 bool isKeyDirty() const { return m_keyDirty; } |
| 81 bool isPrimaryKeyDirty() const { return m_primaryKeyDirty; } | 81 bool isPrimaryKeyDirty() const { return m_primaryKeyDirty; } |
| 82 bool isValueDirty() const { return m_valueDirty; } | 82 bool isValueDirty() const { return m_valueDirty; } |
| 83 | 83 |
| 84 void continueFunction(IDBKey*, IDBKey* primaryKey, ExceptionState&); | 84 void continueFunction(IDBKey*, IDBKey* primaryKey, ExceptionState&); |
| 85 void postSuccessHandlerCallback(); | 85 void postSuccessHandlerCallback(); |
| 86 bool isDeleted() const; | 86 bool isDeleted() const; |
| 87 void close(); | 87 void close(); |
| 88 void setValueReady(IDBKey*, IDBKey* primaryKey, PassRefPtr<SharedBuffer> val
ue, PassOwnPtr<Vector<blink::WebBlobInfo> >); | 88 void setValueReady(IDBKey*, IDBKey* primaryKey, PassRefPtr<SharedBuffer> val
ue, PassOwnPtr<Vector<blink::WebBlobInfo> >); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 109 bool m_valueDirty; | 109 bool m_valueDirty; |
| 110 Member<IDBKey> m_key; | 110 Member<IDBKey> m_key; |
| 111 Member<IDBKey> m_primaryKey; | 111 Member<IDBKey> m_primaryKey; |
| 112 RefPtr<SharedBuffer> m_value; | 112 RefPtr<SharedBuffer> m_value; |
| 113 OwnPtr<Vector<blink::WebBlobInfo> > m_blobInfo; | 113 OwnPtr<Vector<blink::WebBlobInfo> > m_blobInfo; |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 } // namespace WebCore | 116 } // namespace WebCore |
| 117 | 117 |
| 118 #endif // IDBCursor_h | 118 #endif // IDBCursor_h |
| OLD | NEW |