| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 void contextWillBeDestroyed() { m_backend.clear(); } | 57 void contextWillBeDestroyed() { m_backend.clear(); } |
| 58 | 58 |
| 59 // Implement the IDL | 59 // Implement the IDL |
| 60 const String& direction() const; | 60 const String& direction() const; |
| 61 ScriptValue key(ScriptState*); | 61 ScriptValue key(ScriptState*); |
| 62 ScriptValue primaryKey(ScriptState*); | 62 ScriptValue primaryKey(ScriptState*); |
| 63 ScriptValue value(ScriptState*); | 63 ScriptValue value(ScriptState*); |
| 64 ScriptValue source(ScriptState*) const; | 64 ScriptValue source(ScriptState*) const; |
| 65 | 65 |
| 66 IDBRequest* update(ScriptState*, const ScriptValue&, ExceptionState&); | 66 IDBRequest* update(ScriptState*, const ScriptValue&, ExceptionState&); |
| 67 void advance(unsigned long, ExceptionState&); | 67 void advance(unsigned, ExceptionState&); |
| 68 void continueFunction(ScriptState*, const ScriptValue& key, ExceptionState&)
; | 68 void continueFunction(ScriptState*, const ScriptValue& key, ExceptionState&)
; |
| 69 void continuePrimaryKey(ScriptState*, const ScriptValue& key, const ScriptVa
lue& primaryKey, ExceptionState&); | 69 void continuePrimaryKey(ScriptState*, const ScriptValue& key, const ScriptVa
lue& primaryKey, ExceptionState&); |
| 70 IDBRequest* deleteFunction(ScriptState*, ExceptionState&); | 70 IDBRequest* deleteFunction(ScriptState*, ExceptionState&); |
| 71 | 71 |
| 72 bool isKeyDirty() const { return m_keyDirty; } | 72 bool isKeyDirty() const { return m_keyDirty; } |
| 73 bool isPrimaryKeyDirty() const { return m_primaryKeyDirty; } | 73 bool isPrimaryKeyDirty() const { return m_primaryKeyDirty; } |
| 74 bool isValueDirty() const { return m_valueDirty; } | 74 bool isValueDirty() const { return m_valueDirty; } |
| 75 | 75 |
| 76 void continueFunction(IDBKey*, IDBKey* primaryKey, ExceptionState&); | 76 void continueFunction(IDBKey*, IDBKey* primaryKey, ExceptionState&); |
| 77 void postSuccessHandlerCallback(); | 77 void postSuccessHandlerCallback(); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 102 bool m_valueDirty; | 102 bool m_valueDirty; |
| 103 Member<IDBKey> m_key; | 103 Member<IDBKey> m_key; |
| 104 Member<IDBKey> m_primaryKey; | 104 Member<IDBKey> m_primaryKey; |
| 105 RefPtr<SharedBuffer> m_value; | 105 RefPtr<SharedBuffer> m_value; |
| 106 OwnPtr<Vector<WebBlobInfo> > m_blobInfo; | 106 OwnPtr<Vector<WebBlobInfo> > m_blobInfo; |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 } // namespace blink | 109 } // namespace blink |
| 110 | 110 |
| 111 #endif // IDBCursor_h | 111 #endif // IDBCursor_h |
| OLD | NEW |