Chromium Code Reviews| Index: third_party/WebKit/Source/modules/indexeddb/IDBObserver.h |
| diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBObserver.h b/third_party/WebKit/Source/modules/indexeddb/IDBObserver.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4ce0f800cfe1ef6ba9eb50c98d230af10d4bf951 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/modules/indexeddb/IDBObserver.h |
| @@ -0,0 +1,43 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef IDBObserver_h |
| +#define IDBObserver_h |
| + |
| +#include "bindings/core/v8/ScriptWrappable.h" |
| +#include "modules/indexeddb/IDBDatabase.h" |
| +#include "modules/indexeddb/IDBTransaction.h" |
| +#include "platform/Length.h" |
| +#include "platform/heap/Handle.h" |
| +#include "wtf/PassRefPtr.h" |
| +#include "wtf/RefPtr.h" |
|
haraken
2016/06/07 00:21:41
Remove unused headers. The same comment for other
|
| +#include "wtf/text/WTFString.h" |
| + |
| +namespace blink { |
| + |
| +class IDBObserverCallback; |
| +class IDBObserverInit; |
| + |
| +class IDBObserver final : public GarbageCollectedFinalized<IDBObserver>, public ScriptWrappable { |
| + DEFINE_WRAPPERTYPEINFO(); |
| + |
| +public: |
| + static IDBObserver* create(IDBObserverCallback&, const IDBObserverInit&); |
| + // API methods |
| + void observe(IDBDatabase*, IDBTransaction*, ExceptionState&); |
| + |
| + DECLARE_TRACE(); |
| + |
| +private: |
| + explicit IDBObserver(IDBObserverCallback&, const IDBObserverInit&); |
| + |
| + Member<IDBObserverCallback> m_callback; |
| + bool m_transaction; |
| + bool m_values; |
| + bool m_noRecords; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // IDBObserver_h |