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

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: Include error name 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 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 30 matching lines...) Expand all
41 #include "heap/Handle.h" 41 #include "heap/Handle.h"
42 #include "modules/indexeddb/IDBAny.h" 42 #include "modules/indexeddb/IDBAny.h"
43 #include "modules/indexeddb/IDBTransaction.h" 43 #include "modules/indexeddb/IDBTransaction.h"
44 #include "modules/indexeddb/IndexedDB.h" 44 #include "modules/indexeddb/IndexedDB.h"
45 #include "public/platform/WebIDBCursor.h" 45 #include "public/platform/WebIDBCursor.h"
46 46
47 namespace WebCore { 47 namespace WebCore {
48 48
49 class ExceptionState; 49 class ExceptionState;
50 class IDBCursor; 50 class IDBCursor;
51 class ScriptCallStack;
52 class SharedBuffer;
51 struct IDBDatabaseMetadata; 53 struct IDBDatabaseMetadata;
52 class SharedBuffer;
53 54
54 // Base class to simplify usage of event target refcounting. 55 // Base class to simplify usage of event target refcounting.
55 class IDBRequestBase : public WTF::RefCountedBase { 56 class IDBRequestBase : public WTF::RefCountedBase {
56 public: 57 public:
57 virtual void deref() = 0; 58 virtual void deref() = 0;
58 59
59 protected: 60 protected:
60 virtual ~IDBRequestBase() { } 61 virtual ~IDBRequestBase() { }
61 }; 62 };
62 63
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // When a cursor is continued/advanced, m_result is cleared and m_pendingCur sor holds it. 169 // When a cursor is continued/advanced, m_result is cleared and m_pendingCur sor holds it.
169 RefPtr<IDBCursor> m_pendingCursor; 170 RefPtr<IDBCursor> m_pendingCursor;
170 // New state is not applied to the cursor object until the event is dispatch ed. 171 // New state is not applied to the cursor object until the event is dispatch ed.
171 RefPtr<IDBKey> m_cursorKey; 172 RefPtr<IDBKey> m_cursorKey;
172 RefPtr<IDBKey> m_cursorPrimaryKey; 173 RefPtr<IDBKey> m_cursorPrimaryKey;
173 RefPtr<SharedBuffer> m_cursorValue; 174 RefPtr<SharedBuffer> m_cursorValue;
174 175
175 bool m_didFireUpgradeNeededEvent; 176 bool m_didFireUpgradeNeededEvent;
176 bool m_preventPropagation; 177 bool m_preventPropagation;
177 bool m_resultDirty; 178 bool m_resultDirty;
179
180 RefPtr<ScriptCallStack> m_creationStackTrace;
178 }; 181 };
179 182
180 } // namespace WebCore 183 } // namespace WebCore
181 184
182 #endif // IDBRequest_h 185 #endif // IDBRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698