Index: third_party/WebKit/Source/modules/indexeddb/IDBDatabaseObserver.h |
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBDatabaseObserver.h b/third_party/WebKit/Source/modules/indexeddb/IDBDatabaseObserver.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e15de16f2f04c0ea4afcfcd2d486ff02c60896de |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBDatabaseObserver.h |
@@ -0,0 +1,39 @@ |
+// 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 IDBDatabaseObserver_h |
+#define IDBDatabaseObserver_h |
+ |
+#include "mojo/public/cpp/bindings/strong_binding.h" |
+#include "third_party/WebKit/public/platform/modules/indexeddb/indexed_db.mojom-blink.h" |
+ |
+namespace indexed_db { |
+namespace mojom { |
+namespace blink { |
+ |
+class IDBDatabaseObserverImpl : public mojom::blink::DatabaseObserver { |
+public: |
+ static DatabaseObserverPtr Create(); |
+ |
+private: |
+ ~IDBDatabaseObserverImpl(); |
+ |
+ void OnForcedClosed() override; |
+ |
+ void OnVersionChange(int64_t oldVersion, int64_t newVersion) override; |
+ |
+ void OnTransactionAborted(int64_t hostTransactionId, ErrorInfoPtr) override; |
+ |
+ void OnTransactionCompleted(int64_t hostTransactionId) override; |
+ |
+ mojo::StrongBinding<mojom::blink::IDBDatabaseObserverImpl> m_binding; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(IDBDatabaseObserverImpl); |
+}; |
+ |
+} // namespace blink |
+} // namespace mojom |
+} // namespace indexed_db |
+ |
+#endif // IDBDatabaseObserver_h |