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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 void continuePrimaryKey(ScriptState*, | 80 void continuePrimaryKey(ScriptState*, |
81 const ScriptValue& key, | 81 const ScriptValue& key, |
82 const ScriptValue& primary_key, | 82 const ScriptValue& primary_key, |
83 ExceptionState&); | 83 ExceptionState&); |
84 IDBRequest* deleteFunction(ScriptState*, ExceptionState&); | 84 IDBRequest* deleteFunction(ScriptState*, ExceptionState&); |
85 | 85 |
86 bool isKeyDirty() const { return key_dirty_; } | 86 bool isKeyDirty() const { return key_dirty_; } |
87 bool isPrimaryKeyDirty() const { return primary_key_dirty_; } | 87 bool isPrimaryKeyDirty() const { return primary_key_dirty_; } |
88 bool isValueDirty() const { return value_dirty_; } | 88 bool isValueDirty() const { return value_dirty_; } |
89 | 89 |
90 void continueFunction(IDBKey*, IDBKey* primary_key, ExceptionState&); | 90 void Continue(IDBKey*, IDBKey* primary_key, ExceptionState&); |
91 void PostSuccessHandlerCallback(); | 91 void PostSuccessHandlerCallback(); |
92 bool IsDeleted() const; | 92 bool IsDeleted() const; |
93 void Close(); | 93 void Close(); |
94 void SetValueReady(IDBKey*, IDBKey* primary_key, PassRefPtr<IDBValue>); | 94 void SetValueReady(IDBKey*, IDBKey* primary_key, PassRefPtr<IDBValue>); |
95 IDBKey* IdbPrimaryKey() const { return primary_key_; } | 95 IDBKey* IdbPrimaryKey() const { return primary_key_; } |
96 virtual bool IsKeyCursor() const { return true; } | 96 virtual bool IsKeyCursor() const { return true; } |
97 virtual bool IsCursorWithValue() const { return false; } | 97 virtual bool IsCursorWithValue() const { return false; } |
98 | 98 |
99 protected: | 99 protected: |
100 IDBCursor(std::unique_ptr<WebIDBCursor>, | 100 IDBCursor(std::unique_ptr<WebIDBCursor>, |
(...skipping 15 matching lines...) Expand all Loading... |
116 bool primary_key_dirty_ = true; | 116 bool primary_key_dirty_ = true; |
117 bool value_dirty_ = true; | 117 bool value_dirty_ = true; |
118 Member<IDBKey> key_; | 118 Member<IDBKey> key_; |
119 Member<IDBKey> primary_key_; | 119 Member<IDBKey> primary_key_; |
120 RefPtr<IDBValue> value_; | 120 RefPtr<IDBValue> value_; |
121 }; | 121 }; |
122 | 122 |
123 } // namespace blink | 123 } // namespace blink |
124 | 124 |
125 #endif // IDBCursor_h | 125 #endif // IDBCursor_h |
OLD | NEW |