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

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

Issue 243523003: Fire window.onerror for uncaught IndexedDB errors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add comment Created 6 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 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "modules/indexeddb/IndexedDB.h" 43 #include "modules/indexeddb/IndexedDB.h"
44 #include "platform/heap/Handle.h" 44 #include "platform/heap/Handle.h"
45 #include "public/platform/WebBlobInfo.h" 45 #include "public/platform/WebBlobInfo.h"
46 #include "public/platform/WebIDBCursor.h" 46 #include "public/platform/WebIDBCursor.h"
47 #include "public/platform/WebIDBTypes.h" 47 #include "public/platform/WebIDBTypes.h"
48 48
49 namespace WebCore { 49 namespace WebCore {
50 50
51 class ExceptionState; 51 class ExceptionState;
52 class IDBCursor; 52 class IDBCursor;
53 class ScriptCallStack;
54 class SharedBuffer;
53 struct IDBDatabaseMetadata; 55 struct IDBDatabaseMetadata;
54 class SharedBuffer;
55 56
56 class IDBRequest 57 class IDBRequest
57 : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<IDBReques t> 58 : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<IDBReques t>
58 , public ScriptWrappable 59 , public ScriptWrappable
59 , public EventTargetWithInlineData 60 , public EventTargetWithInlineData
60 , public ActiveDOMObject { 61 , public ActiveDOMObject {
61 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<I DBRequest>); 62 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<I DBRequest>);
62 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(IDBRequest); 63 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(IDBRequest);
63 public: 64 public:
64 static IDBRequest* create(ScriptState*, IDBAny* source, IDBTransaction*); 65 static IDBRequest* create(ScriptState*, IDBAny* source, IDBTransaction*);
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 IndexedDB::CursorType m_cursorType; 157 IndexedDB::CursorType m_cursorType;
157 blink::WebIDBCursorDirection m_cursorDirection; 158 blink::WebIDBCursorDirection m_cursorDirection;
158 // When a cursor is continued/advanced, m_result is cleared and m_pendingCur sor holds it. 159 // When a cursor is continued/advanced, m_result is cleared and m_pendingCur sor holds it.
159 Member<IDBCursor> m_pendingCursor; 160 Member<IDBCursor> m_pendingCursor;
160 // New state is not applied to the cursor object until the event is dispatch ed. 161 // New state is not applied to the cursor object until the event is dispatch ed.
161 Member<IDBKey> m_cursorKey; 162 Member<IDBKey> m_cursorKey;
162 Member<IDBKey> m_cursorPrimaryKey; 163 Member<IDBKey> m_cursorPrimaryKey;
163 RefPtr<SharedBuffer> m_cursorValue; 164 RefPtr<SharedBuffer> m_cursorValue;
164 OwnPtr<Vector<blink::WebBlobInfo> > m_blobInfo; 165 OwnPtr<Vector<blink::WebBlobInfo> > m_blobInfo;
165 166
167 RefPtrWillBeMember<ScriptCallStack> m_creationStackTrace;
168
166 bool m_didFireUpgradeNeededEvent; 169 bool m_didFireUpgradeNeededEvent;
167 bool m_preventPropagation; 170 bool m_preventPropagation;
168 bool m_resultDirty; 171 bool m_resultDirty;
169 }; 172 };
170 173
171 } // namespace WebCore 174 } // namespace WebCore
172 175
173 #endif // IDBRequest_h 176 #endif // IDBRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698