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/Length.h" | |
| 12 #include "platform/heap/Handle.h" | |
| 13 #include "wtf/PassRefPtr.h" | |
| 14 #include "wtf/RefPtr.h" | |
|
haraken
2016/06/07 00:21:41
Remove unused headers. The same comment for other
| |
| 15 #include "wtf/text/WTFString.h" | |
| 16 | |
| 17 namespace blink { | |
| 18 | |
| 19 class IDBObserverCallback; | |
| 20 class IDBObserverInit; | |
| 21 | |
| 22 class IDBObserver final : public GarbageCollectedFinalized<IDBObserver>, public ScriptWrappable { | |
| 23 DEFINE_WRAPPERTYPEINFO(); | |
| 24 | |
| 25 public: | |
| 26 static IDBObserver* create(IDBObserverCallback&, const IDBObserverInit&); | |
| 27 // API methods | |
| 28 void observe(IDBDatabase*, IDBTransaction*, ExceptionState&); | |
| 29 | |
| 30 DECLARE_TRACE(); | |
| 31 | |
| 32 private: | |
| 33 explicit IDBObserver(IDBObserverCallback&, const IDBObserverInit&); | |
| 34 | |
| 35 Member<IDBObserverCallback> m_callback; | |
| 36 bool m_transaction; | |
| 37 bool m_values; | |
| 38 bool m_noRecords; | |
| 39 }; | |
| 40 | |
| 41 } // namespace blink | |
| 42 | |
| 43 #endif // IDBObserver_h | |
| OLD | NEW |