| OLD | NEW |
| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 #include "public/platform/modules/indexeddb/WebIDBTypes.h" | 48 #include "public/platform/modules/indexeddb/WebIDBTypes.h" |
| 49 #include <memory> | 49 #include <memory> |
| 50 | 50 |
| 51 namespace blink { | 51 namespace blink { |
| 52 | 52 |
| 53 class DOMException; | 53 class DOMException; |
| 54 class ExceptionState; | 54 class ExceptionState; |
| 55 class IDBCursor; | 55 class IDBCursor; |
| 56 struct IDBDatabaseMetadata; | 56 struct IDBDatabaseMetadata; |
| 57 class IDBValue; | 57 class IDBValue; |
| 58 class SourceLocation; |
| 58 | 59 |
| 59 class MODULES_EXPORT IDBRequest : public EventTargetWithInlineData, | 60 class MODULES_EXPORT IDBRequest : public EventTargetWithInlineData, |
| 60 public ActiveScriptWrappable<IDBRequest>, | 61 public ActiveScriptWrappable<IDBRequest>, |
| 61 public SuspendableObject { | 62 public SuspendableObject { |
| 62 DEFINE_WRAPPERTYPEINFO(); | 63 DEFINE_WRAPPERTYPEINFO(); |
| 63 USING_GARBAGE_COLLECTED_MIXIN(IDBRequest); | 64 USING_GARBAGE_COLLECTED_MIXIN(IDBRequest); |
| 64 | 65 |
| 65 public: | 66 public: |
| 66 static IDBRequest* create(ScriptState*, IDBAny* source, IDBTransaction*); | 67 static IDBRequest* create(ScriptState*, IDBAny* source, IDBTransaction*); |
| 67 ~IDBRequest() override; | 68 ~IDBRequest() override; |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // New state is not applied to the cursor object until the event is | 181 // New state is not applied to the cursor object until the event is |
| 181 // dispatched. | 182 // dispatched. |
| 182 Member<IDBKey> m_cursorKey; | 183 Member<IDBKey> m_cursorKey; |
| 183 Member<IDBKey> m_cursorPrimaryKey; | 184 Member<IDBKey> m_cursorPrimaryKey; |
| 184 RefPtr<IDBValue> m_cursorValue; | 185 RefPtr<IDBValue> m_cursorValue; |
| 185 | 186 |
| 186 bool m_didFireUpgradeNeededEvent = false; | 187 bool m_didFireUpgradeNeededEvent = false; |
| 187 bool m_preventPropagation = false; | 188 bool m_preventPropagation = false; |
| 188 bool m_resultDirty = true; | 189 bool m_resultDirty = true; |
| 189 | 190 |
| 191 std::unique_ptr<SourceLocation> m_creationSource; |
| 192 |
| 190 // Pointer back to the WebIDBCallbacks that holds a persistent reference to | 193 // Pointer back to the WebIDBCallbacks that holds a persistent reference to |
| 191 // this object. | 194 // this object. |
| 192 WebIDBCallbacks* m_webCallbacks = nullptr; | 195 WebIDBCallbacks* m_webCallbacks = nullptr; |
| 193 }; | 196 }; |
| 194 | 197 |
| 195 } // namespace blink | 198 } // namespace blink |
| 196 | 199 |
| 197 #endif // IDBRequest_h | 200 #endif // IDBRequest_h |
| OLD | NEW |