Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef IDBObserver_h | |
| 6 #define IDBObserver_h | |
| 7 | |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | |
| 9 #include "modules/indexeddb/IDBDatabase.h" | |
| 10 #include "modules/indexeddb/IDBTransaction.h" | |
| 11 #include "platform/heap/Handle.h" | |
| 12 | |
| 13 | |
| 14 namespace blink { | |
| 15 | |
| 16 class IDBObserverCallback; | |
| 17 class IDBObserverInit; | |
| 18 | |
| 19 class IDBObserver final : public GarbageCollectedFinalized<IDBObserver>, public ScriptWrappable { | |
| 20 DEFINE_WRAPPERTYPEINFO(); | |
| 21 | |
| 22 public: | |
| 23 static IDBObserver* create(IDBObserverCallback&, const IDBObserverInit&); | |
| 24 // API methods | |
| 25 void observe(IDBDatabase*, IDBTransaction*, ExceptionState&); | |
| 26 | |
| 27 DECLARE_TRACE(); | |
| 28 | |
| 29 private: | |
| 30 explicit IDBObserver(IDBObserverCallback&, const IDBObserverInit&); | |
|
haraken
2016/06/10 00:26:57
Drop explicit.
| |
| 31 | |
| 32 Member<IDBObserverCallback> m_callback; | |
| 33 bool m_transaction; | |
| 34 bool m_values; | |
| 35 bool m_noRecords; | |
| 36 }; | |
| 37 | |
| 38 } // namespace blink | |
| 39 | |
| 40 #endif // IDBObserver_h | |
| OLD | NEW |