Index: third_party/WebKit/Source/modules/indexeddb/IDBOpenRequestObserver.h |
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBOpenRequestObserver.h b/third_party/WebKit/Source/modules/indexeddb/IDBOpenRequestObserver.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9c806cee05f07a3c4a737b47676d53c6bc2b2b6f |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBOpenRequestObserver.h |
@@ -0,0 +1,35 @@ |
+// 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 IDBOpenRequestObserver_h |
+#define IDBOpenRequestObserver_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 IDBOpenRequestObserverImpl : public mojom::blink::OpenRequestObserver { |
+public: |
+ static OpenRequestObserverPtr Create(); |
+ |
+private: |
+ ~IDBOpenRequestObserverImpl(); |
+ |
+ void Blocked(int64_t oldVersion); |
+ |
+ void UpgradeNeeded(int64_t oldVersion, DatabasePtr, DatabaseMetadataPtr, DataLossInfoPtr); |
+ |
+ mojo::StrongBinding<mojom::blink::IDBOpenRequestObserverImpl> m_binding; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(IDBOpenRequestObserverImpl); |
+}; |
+ |
+} // namespace blink |
+} // namespace mojom |
+} // namespace indexed_db |
+ |
+#endif // IDBOpenRequestObserver_h |