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

Unified Diff: Source/modules/indexeddb/IDBRequest.h

Issue 236773003: Completely remove DOMRequestState from IndexedDB code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/indexeddb/IDBObjectStore.cpp ('k') | Source/modules/indexeddb/IDBRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBRequest.h
diff --git a/Source/modules/indexeddb/IDBRequest.h b/Source/modules/indexeddb/IDBRequest.h
index a431f3a72092911dc12fb11f28943789fabb865b..2bca602f30ef37782e63b907ee496003dbeb0e10 100644
--- a/Source/modules/indexeddb/IDBRequest.h
+++ b/Source/modules/indexeddb/IDBRequest.h
@@ -29,7 +29,7 @@
#ifndef IDBRequest_h
#define IDBRequest_h
-#include "bindings/v8/DOMRequestState.h"
+#include "bindings/v8/NewScriptState.h"
#include "bindings/v8/ScriptValue.h"
#include "bindings/v8/ScriptWrappable.h"
#include "core/dom/ActiveDOMObject.h"
@@ -67,9 +67,9 @@ public:
static PassRefPtr<IDBRequest> create(ExecutionContext*, PassRefPtr<IDBAny> source, IDBTransaction*);
virtual ~IDBRequest();
- ScriptValue result(NewScriptState*, ExceptionState&);
+ ScriptValue result(ExceptionState&);
PassRefPtrWillBeRawPtr<DOMError> error(ExceptionState&) const;
- ScriptValue source(NewScriptState*) const;
+ ScriptValue source() const;
PassRefPtr<IDBTransaction> transaction() const { return m_transaction; }
bool isResultDirty() const { return m_resultDirty; }
@@ -135,7 +135,6 @@ public:
checkForReferenceCycle();
}
- DOMRequestState* requestState() { return &m_requestState; }
IDBCursor* getResultCursor() const;
protected:
@@ -155,6 +154,7 @@ private:
void setResultCursor(PassRefPtr<IDBCursor>, PassRefPtr<IDBKey>, PassRefPtr<IDBKey> primaryKey, PassRefPtr<SharedBuffer> value);
void checkForReferenceCycle();
+ RefPtr<NewScriptState> m_scriptState;
RefPtr<IDBAny> m_source;
RefPtr<IDBAny> m_result;
RefPtrWillBePersistent<DOMError> m_error;
@@ -175,8 +175,6 @@ private:
bool m_didFireUpgradeNeededEvent;
bool m_preventPropagation;
bool m_resultDirty;
-
- DOMRequestState m_requestState;
};
} // namespace WebCore
« no previous file with comments | « Source/modules/indexeddb/IDBObjectStore.cpp ('k') | Source/modules/indexeddb/IDBRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698