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

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

Issue 555633002: Make IDBTransaction ctor take ScriptState instead of ExecutionContext (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 IDBCursor* getResultCursor() const; 127 IDBCursor* getResultCursor() const;
128 128
129 protected: 129 protected:
130 IDBRequest(ScriptState*, IDBAny* source, IDBTransaction*); 130 IDBRequest(ScriptState*, IDBAny* source, IDBTransaction*);
131 void enqueueEvent(PassRefPtrWillBeRawPtr<Event>); 131 void enqueueEvent(PassRefPtrWillBeRawPtr<Event>);
132 void dequeueEvent(Event*); 132 void dequeueEvent(Event*);
133 virtual bool shouldEnqueueEvent() const; 133 virtual bool shouldEnqueueEvent() const;
134 void onSuccessInternal(IDBAny*); 134 void onSuccessInternal(IDBAny*);
135 void setResult(IDBAny*); 135 void setResult(IDBAny*);
136 ScriptState* scriptState() { return m_scriptState.get(); }
136 137
137 bool m_contextStopped; 138 bool m_contextStopped;
138 Member<IDBTransaction> m_transaction; 139 Member<IDBTransaction> m_transaction;
139 ReadyState m_readyState; 140 ReadyState m_readyState;
140 bool m_requestAborted; // May be aborted by transaction then receive async o nsuccess; ignore vs. assert. 141 bool m_requestAborted; // May be aborted by transaction then receive async o nsuccess; ignore vs. assert.
141 142
142 private: 143 private:
143 void setResultCursor(IDBCursor*, IDBKey*, IDBKey* primaryKey, PassRefPtr<Sha redBuffer> value, PassOwnPtr<Vector<WebBlobInfo> >); 144 void setResultCursor(IDBCursor*, IDBKey*, IDBKey* primaryKey, PassRefPtr<Sha redBuffer> value, PassOwnPtr<Vector<WebBlobInfo> >);
144 void handleBlobAcks(); 145 void handleBlobAcks();
145 146
(...skipping 17 matching lines...) Expand all
163 OwnPtr<Vector<WebBlobInfo> > m_blobInfo; 164 OwnPtr<Vector<WebBlobInfo> > m_blobInfo;
164 165
165 bool m_didFireUpgradeNeededEvent; 166 bool m_didFireUpgradeNeededEvent;
166 bool m_preventPropagation; 167 bool m_preventPropagation;
167 bool m_resultDirty; 168 bool m_resultDirty;
168 }; 169 };
169 170
170 } // namespace blink 171 } // namespace blink
171 172
172 #endif // IDBRequest_h 173 #endif // IDBRequest_h
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBOpenDBRequest.cpp ('k') | Source/modules/indexeddb/IDBTransaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698