| 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 "wtf/PassRefPtr.h" | 48 #include "wtf/PassRefPtr.h" |
| 49 #include "wtf/RefPtr.h" | 49 #include "wtf/RefPtr.h" |
| 50 | 50 |
| 51 namespace blink { | 51 namespace blink { |
| 52 | 52 |
| 53 class DOMException; | 53 class DOMException; |
| 54 class ExceptionState; | 54 class ExceptionState; |
| 55 class ExecutionContext; | 55 class ExecutionContext; |
| 56 | 56 |
| 57 class MODULES_EXPORT IDBDatabase final | 57 class MODULES_EXPORT IDBDatabase final |
| 58 : public RefCountedGarbageCollectedEventTargetWithInlineData<IDBDatabase> | 58 : public EventTargetWithInlineData |
| 59 , public ActiveScriptWrappable | 59 , public ActiveScriptWrappable |
| 60 , public ActiveDOMObject { | 60 , public ActiveDOMObject { |
| 61 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(IDBDatabase); | 61 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(IDBDatabase); |
| 62 USING_GARBAGE_COLLECTED_MIXIN(IDBDatabase); | 62 USING_GARBAGE_COLLECTED_MIXIN(IDBDatabase); |
| 63 DEFINE_WRAPPERTYPEINFO(); | 63 DEFINE_WRAPPERTYPEINFO(); |
| 64 public: | 64 public: |
| 65 static IDBDatabase* create(ExecutionContext*, PassOwnPtr<WebIDBDatabase>, ID
BDatabaseCallbacks*); | 65 static IDBDatabase* create(ExecutionContext*, PassOwnPtr<WebIDBDatabase>, ID
BDatabaseCallbacks*); |
| 66 ~IDBDatabase() override; | 66 ~IDBDatabase() override; |
| 67 DECLARE_VIRTUAL_TRACE(); | 67 DECLARE_VIRTUAL_TRACE(); |
| 68 | 68 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 // Keep track of the versionchange events waiting to be fired on this | 157 // Keep track of the versionchange events waiting to be fired on this |
| 158 // database so that we can cancel them if the database closes. | 158 // database so that we can cancel them if the database closes. |
| 159 HeapVector<Member<Event>> m_enqueuedEvents; | 159 HeapVector<Member<Event>> m_enqueuedEvents; |
| 160 | 160 |
| 161 Member<IDBDatabaseCallbacks> m_databaseCallbacks; | 161 Member<IDBDatabaseCallbacks> m_databaseCallbacks; |
| 162 }; | 162 }; |
| 163 | 163 |
| 164 } // namespace blink | 164 } // namespace blink |
| 165 | 165 |
| 166 #endif // IDBDatabase_h | 166 #endif // IDBDatabase_h |
| OLD | NEW |