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

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: Don't capture full stack unless devtools is visible Created 6 years 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "modules/indexeddb/IndexedDB.h" 42 #include "modules/indexeddb/IndexedDB.h"
43 #include "platform/heap/Handle.h" 43 #include "platform/heap/Handle.h"
44 #include "public/platform/WebBlobInfo.h" 44 #include "public/platform/WebBlobInfo.h"
45 #include "public/platform/WebIDBCursor.h" 45 #include "public/platform/WebIDBCursor.h"
46 #include "public/platform/WebIDBTypes.h" 46 #include "public/platform/WebIDBTypes.h"
47 47
48 namespace blink { 48 namespace blink {
49 49
50 class ExceptionState; 50 class ExceptionState;
51 class IDBCursor; 51 class IDBCursor;
52 class ScriptCallStack;
53 class SharedBuffer;
52 struct IDBDatabaseMetadata; 54 struct IDBDatabaseMetadata;
53 class SharedBuffer;
54 55
55 class IDBRequest 56 class IDBRequest
56 : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<IDBReques t> 57 : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<IDBReques t>
57 , public EventTargetWithInlineData 58 , public EventTargetWithInlineData
58 , public ActiveDOMObject { 59 , public ActiveDOMObject {
59 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<I DBRequest>); 60 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<I DBRequest>);
60 DEFINE_WRAPPERTYPEINFO(); 61 DEFINE_WRAPPERTYPEINFO();
61 USING_PRE_FINALIZER(IDBRequest, dispose); 62 USING_PRE_FINALIZER(IDBRequest, dispose);
62 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(IDBRequest); 63 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(IDBRequest);
63 public: 64 public:
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 IndexedDB::CursorType m_cursorType; 160 IndexedDB::CursorType m_cursorType;
160 WebIDBCursorDirection m_cursorDirection; 161 WebIDBCursorDirection m_cursorDirection;
161 // When a cursor is continued/advanced, m_result is cleared and m_pendingCur sor holds it. 162 // When a cursor is continued/advanced, m_result is cleared and m_pendingCur sor holds it.
162 Member<IDBCursor> m_pendingCursor; 163 Member<IDBCursor> m_pendingCursor;
163 // New state is not applied to the cursor object until the event is dispatch ed. 164 // New state is not applied to the cursor object until the event is dispatch ed.
164 Member<IDBKey> m_cursorKey; 165 Member<IDBKey> m_cursorKey;
165 Member<IDBKey> m_cursorPrimaryKey; 166 Member<IDBKey> m_cursorPrimaryKey;
166 RefPtr<SharedBuffer> m_cursorValue; 167 RefPtr<SharedBuffer> m_cursorValue;
167 OwnPtr<Vector<WebBlobInfo> > m_blobInfo; 168 OwnPtr<Vector<WebBlobInfo> > m_blobInfo;
168 169
170 RefPtrWillBeMember<ScriptCallStack> m_creationStackTrace;
171
169 bool m_didFireUpgradeNeededEvent; 172 bool m_didFireUpgradeNeededEvent;
170 bool m_preventPropagation; 173 bool m_preventPropagation;
171 bool m_resultDirty; 174 bool m_resultDirty;
172 }; 175 };
173 176
174 } // namespace blink 177 } // namespace blink
175 178
176 #endif // IDBRequest_h 179 #endif // IDBRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698