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

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

Issue 2473203002: IndexedDB: Remove m_contextStopped from ActiveDOMObjecs (Closed)
Patch Set: Created 4 years, 1 month 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
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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 IDBRequest(ScriptState*, IDBAny* source, IDBTransaction*); 144 IDBRequest(ScriptState*, IDBAny* source, IDBTransaction*);
145 void enqueueEvent(Event*); 145 void enqueueEvent(Event*);
146 void dequeueEvent(Event*); 146 void dequeueEvent(Event*);
147 virtual bool shouldEnqueueEvent() const; 147 virtual bool shouldEnqueueEvent() const;
148 void onSuccessInternal(IDBAny*); 148 void onSuccessInternal(IDBAny*);
149 void setResult(IDBAny*); 149 void setResult(IDBAny*);
150 150
151 // EventTarget 151 // EventTarget
152 DispatchEventResult dispatchEventInternal(Event*) override; 152 DispatchEventResult dispatchEventInternal(Event*) override;
153 153
154 bool m_contextStopped = false;
155 Member<IDBTransaction> m_transaction; 154 Member<IDBTransaction> m_transaction;
156 ReadyState m_readyState = PENDING; 155 ReadyState m_readyState = PENDING;
157 bool m_requestAborted = false; // May be aborted by transaction then receive 156 bool m_requestAborted = false; // May be aborted by transaction then receive
158 // async onsuccess; ignore vs. assert. 157 // async onsuccess; ignore vs. assert.
159 158
160 private: 159 private:
161 void setResultCursor(IDBCursor*, 160 void setResultCursor(IDBCursor*,
162 IDBKey*, 161 IDBKey*,
163 IDBKey* primaryKey, 162 IDBKey* primaryKey,
164 PassRefPtr<IDBValue>); 163 PassRefPtr<IDBValue>);
(...skipping 24 matching lines...) Expand all
189 bool m_resultDirty = true; 188 bool m_resultDirty = true;
190 189
191 // Pointer back to the WebIDBCallbacks that holds a persistent reference to 190 // Pointer back to the WebIDBCallbacks that holds a persistent reference to
192 // this object. 191 // this object.
193 WebIDBCallbacks* m_webCallbacks = nullptr; 192 WebIDBCallbacks* m_webCallbacks = nullptr;
194 }; 193 };
195 194
196 } // namespace blink 195 } // namespace blink
197 196
198 #endif // IDBRequest_h 197 #endif // IDBRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698