| 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 <memory> | 48 #include <memory> |
| 49 | 49 |
| 50 namespace blink { | 50 namespace blink { |
| 51 | 51 |
| 52 class DOMException; | 52 class DOMException; |
| 53 class ExceptionState; | 53 class ExceptionState; |
| 54 class ExecutionContext; | 54 class ExecutionContext; |
| 55 class IDBObserver; | 55 class IDBObserver; |
| 56 struct WebIDBObservation; | 56 struct WebIDBObservation; |
| 57 | 57 |
| 58 class MODULES_EXPORT IDBDatabase final : public EventTargetWithInlineData, | 58 class MODULES_EXPORT IDBDatabase final |
| 59 public ActiveScriptWrappable, | 59 : public EventTargetWithInlineData, |
| 60 public SuspendableObject { | 60 public ActiveScriptWrappable<IDBDatabase>, |
| 61 public SuspendableObject { |
| 61 USING_GARBAGE_COLLECTED_MIXIN(IDBDatabase); | 62 USING_GARBAGE_COLLECTED_MIXIN(IDBDatabase); |
| 62 DEFINE_WRAPPERTYPEINFO(); | 63 DEFINE_WRAPPERTYPEINFO(); |
| 63 | 64 |
| 64 public: | 65 public: |
| 65 static IDBDatabase* create(ExecutionContext*, | 66 static IDBDatabase* create(ExecutionContext*, |
| 66 std::unique_ptr<WebIDBDatabase>, | 67 std::unique_ptr<WebIDBDatabase>, |
| 67 IDBDatabaseCallbacks*); | 68 IDBDatabaseCallbacks*); |
| 68 ~IDBDatabase() override; | 69 ~IDBDatabase() override; |
| 69 DECLARE_VIRTUAL_TRACE(); | 70 DECLARE_VIRTUAL_TRACE(); |
| 70 | 71 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 // Keep track of the versionchange events waiting to be fired on this | 195 // Keep track of the versionchange events waiting to be fired on this |
| 195 // database so that we can cancel them if the database closes. | 196 // database so that we can cancel them if the database closes. |
| 196 HeapVector<Member<Event>> m_enqueuedEvents; | 197 HeapVector<Member<Event>> m_enqueuedEvents; |
| 197 | 198 |
| 198 Member<IDBDatabaseCallbacks> m_databaseCallbacks; | 199 Member<IDBDatabaseCallbacks> m_databaseCallbacks; |
| 199 }; | 200 }; |
| 200 | 201 |
| 201 } // namespace blink | 202 } // namespace blink |
| 202 | 203 |
| 203 #endif // IDBDatabase_h | 204 #endif // IDBDatabase_h |
| OLD | NEW |