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

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

Issue 18398002: Remove IDBNotFoundError ExceptionCode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add missing include in code gen wich causes win compile failure Created 7 years, 5 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
Index: Source/modules/indexeddb/IDBCursor.h
diff --git a/Source/modules/indexeddb/IDBCursor.h b/Source/modules/indexeddb/IDBCursor.h
index b633852750431b1d1264ef63c1ba4a5e714cfb17..cb6f4e52add6e8022746d7610f984f300273d3df 100644
--- a/Source/modules/indexeddb/IDBCursor.h
+++ b/Source/modules/indexeddb/IDBCursor.h
@@ -38,14 +38,13 @@
namespace WebCore {
class DOMRequestState;
+class ExceptionState;
class IDBAny;
class IDBCallbacks;
class IDBCursorBackendInterface;
class IDBRequest;
class ScriptExecutionContext;
-typedef int ExceptionCode;
-
class IDBCursor : public ScriptWrappable, public RefCounted<IDBCursor> {
public:
static const AtomicString& directionNext();
@@ -53,7 +52,7 @@ public:
static const AtomicString& directionPrev();
static const AtomicString& directionPrevUnique();
- static IndexedDB::CursorDirection stringToDirection(const String& modeString, ExceptionCode&);
+ static IndexedDB::CursorDirection stringToDirection(const String& modeString, ExceptionState&);
static const AtomicString& directionToString(unsigned short mode);
static PassRefPtr<IDBCursor> create(PassRefPtr<IDBCursorBackendInterface>, IndexedDB::CursorDirection, IDBRequest*, IDBAny* source, IDBTransaction*);
@@ -66,12 +65,12 @@ public:
const ScriptValue& value() const;
IDBAny* source() const;
- PassRefPtr<IDBRequest> update(ScriptState*, ScriptValue&, ExceptionCode&);
- void advance(unsigned long, ExceptionCode&);
- void continueFunction(ScriptExecutionContext*, const ScriptValue& key, ExceptionCode&);
- PassRefPtr<IDBRequest> deleteFunction(ScriptExecutionContext*, ExceptionCode&);
+ PassRefPtr<IDBRequest> update(ScriptState*, ScriptValue&, ExceptionState&);
+ void advance(unsigned long, ExceptionState&);
+ void continueFunction(ScriptExecutionContext*, const ScriptValue& key, ExceptionState&);
+ PassRefPtr<IDBRequest> deleteFunction(ScriptExecutionContext*, ExceptionState&);
- void continueFunction(PassRefPtr<IDBKey>, ExceptionCode&);
+ void continueFunction(PassRefPtr<IDBKey>, ExceptionState&);
void postSuccessHandlerCallback();
void close();
void setValueReady(DOMRequestState*, PassRefPtr<IDBKey>, PassRefPtr<IDBKey> primaryKey, ScriptValue&);

Powered by Google App Engine
This is Rietveld 408576698