Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: Source/modules/indexeddb/IDBCursor.h

Issue 295163005: Remove ScriptState::current() from IDBRequest (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
71 void trace(Visitor*); 71 void trace(Visitor*);
72 void contextWillBeDestroyed() { m_backend.clear(); } 72 void contextWillBeDestroyed() { m_backend.clear(); }
73 73
74 // Implement the IDL 74 // Implement the IDL
75 const String& direction() const { return directionToString(m_direction); } 75 const String& direction() const { return directionToString(m_direction); }
76 ScriptValue key(ScriptState*); 76 ScriptValue key(ScriptState*);
77 ScriptValue primaryKey(ScriptState*); 77 ScriptValue primaryKey(ScriptState*);
78 ScriptValue value(ScriptState*); 78 ScriptValue value(ScriptState*);
79 ScriptValue source(ScriptState*) const; 79 ScriptValue source(ScriptState*) const;
80 80
81 PassRefPtrWillBeRawPtr<IDBRequest> update(ExecutionContext*, ScriptValue&, E xceptionState&); 81 PassRefPtrWillBeRawPtr<IDBRequest> update(ScriptState*, ScriptValue&, Except ionState&);
82 void advance(unsigned long, ExceptionState&); 82 void advance(unsigned long, ExceptionState&);
83 void continueFunction(ExecutionContext*, const ScriptValue& key, ExceptionSt ate&); 83 void continueFunction(ScriptState*, const ScriptValue& key, ExceptionState&) ;
84 void continuePrimaryKey(ExecutionContext*, const ScriptValue& key, const Scr iptValue& primaryKey, ExceptionState&); 84 void continuePrimaryKey(ScriptState*, const ScriptValue& key, const ScriptVa lue& primaryKey, ExceptionState&);
85 PassRefPtrWillBeRawPtr<IDBRequest> deleteFunction(ExecutionContext*, Excepti onState&); 85 PassRefPtrWillBeRawPtr<IDBRequest> deleteFunction(ScriptState*, ExceptionSta te&);
86 86
87 bool isKeyDirty() const { return m_keyDirty; } 87 bool isKeyDirty() const { return m_keyDirty; }
88 bool isPrimaryKeyDirty() const { return m_primaryKeyDirty; } 88 bool isPrimaryKeyDirty() const { return m_primaryKeyDirty; }
89 bool isValueDirty() const { return m_valueDirty; } 89 bool isValueDirty() const { return m_valueDirty; }
90 90
91 void continueFunction(PassRefPtrWillBeRawPtr<IDBKey>, PassRefPtrWillBeRawPtr <IDBKey> primaryKey, ExceptionState&); 91 void continueFunction(PassRefPtrWillBeRawPtr<IDBKey>, PassRefPtrWillBeRawPtr <IDBKey> primaryKey, ExceptionState&);
92 void postSuccessHandlerCallback(); 92 void postSuccessHandlerCallback();
93 bool isDeleted() const; 93 bool isDeleted() const;
94 void close(); 94 void close();
95 void setValueReady(PassRefPtrWillBeRawPtr<IDBKey>, PassRefPtrWillBeRawPtr<ID BKey> primaryKey, PassRefPtr<SharedBuffer> value, PassOwnPtr<Vector<blink::WebBl obInfo> >); 95 void setValueReady(PassRefPtrWillBeRawPtr<IDBKey>, PassRefPtrWillBeRawPtr<ID BKey> primaryKey, PassRefPtr<SharedBuffer> value, PassOwnPtr<Vector<blink::WebBl obInfo> >);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 bool m_valueDirty; 130 bool m_valueDirty;
131 RefPtrWillBeMember<IDBKey> m_key; 131 RefPtrWillBeMember<IDBKey> m_key;
132 RefPtrWillBeMember<IDBKey> m_primaryKey; 132 RefPtrWillBeMember<IDBKey> m_primaryKey;
133 RefPtr<SharedBuffer> m_value; 133 RefPtr<SharedBuffer> m_value;
134 OwnPtr<Vector<blink::WebBlobInfo> > m_blobInfo; 134 OwnPtr<Vector<blink::WebBlobInfo> > m_blobInfo;
135 }; 135 };
136 136
137 } // namespace WebCore 137 } // namespace WebCore
138 138
139 #endif // IDBCursor_h 139 #endif // IDBCursor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698