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

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: Update testharness-based test to allow onerror Created 6 years, 6 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "modules/indexeddb/IDBTransaction.h" 42 #include "modules/indexeddb/IDBTransaction.h"
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 47
48 namespace WebCore { 48 namespace WebCore {
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 RefCountedGarbageCollected<IDBRequest> 57 : public RefCountedGarbageCollected<IDBRequest>
57 , public ScriptWrappable 58 , public ScriptWrappable
58 , public EventTargetWithInlineData 59 , public EventTargetWithInlineData
59 , public ActiveDOMObject { 60 , public ActiveDOMObject {
60 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedGarbageCollected<IDBRequest>); 61 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedGarbageCollected<IDBRequest>);
61 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(IDBRequest); 62 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(IDBRequest);
62 public: 63 public:
63 static IDBRequest* create(ScriptState*, IDBAny* source, IDBTransaction*); 64 static IDBRequest* create(ScriptState*, IDBAny* source, IDBTransaction*);
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 Member<IDBCursor> m_pendingCursor; 159 Member<IDBCursor> m_pendingCursor;
159 // New state is not applied to the cursor object until the event is dispatch ed. 160 // New state is not applied to the cursor object until the event is dispatch ed.
160 Member<IDBKey> m_cursorKey; 161 Member<IDBKey> m_cursorKey;
161 Member<IDBKey> m_cursorPrimaryKey; 162 Member<IDBKey> m_cursorPrimaryKey;
162 RefPtr<SharedBuffer> m_cursorValue; 163 RefPtr<SharedBuffer> m_cursorValue;
163 OwnPtr<Vector<blink::WebBlobInfo> > m_blobInfo; 164 OwnPtr<Vector<blink::WebBlobInfo> > m_blobInfo;
164 165
165 bool m_didFireUpgradeNeededEvent; 166 bool m_didFireUpgradeNeededEvent;
166 bool m_preventPropagation; 167 bool m_preventPropagation;
167 bool m_resultDirty; 168 bool m_resultDirty;
169
170 RefPtr<ScriptCallStack> m_creationStackTrace;
168 }; 171 };
169 172
170 } // namespace WebCore 173 } // namespace WebCore
171 174
172 #endif // IDBRequest_h 175 #endif // IDBRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698