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 IDBDatabaseObserver_h |
| 6 #define IDBDatabaseObserver_h |
| 7 |
| 8 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 9 #include "third_party/WebKit/public/platform/modules/indexeddb/indexed_db.mojom-
blink.h" |
| 10 |
| 11 namespace indexed_db { |
| 12 namespace mojom { |
| 13 namespace blink { |
| 14 |
| 15 class IDBDatabaseObserverImpl : public mojom::blink::DatabaseObserver { |
| 16 public: |
| 17 static DatabaseObserverPtr Create(); |
| 18 |
| 19 private: |
| 20 ~IDBDatabaseObserverImpl(); |
| 21 |
| 22 void OnForcedClosed() override; |
| 23 |
| 24 void OnVersionChange(int64_t oldVersion, int64_t newVersion) override; |
| 25 |
| 26 void OnTransactionAborted(int64_t hostTransactionId, ErrorInfoPtr) override; |
| 27 |
| 28 void OnTransactionCompleted(int64_t hostTransactionId) override; |
| 29 |
| 30 mojo::StrongBinding<mojom::blink::IDBDatabaseObserverImpl> m_binding; |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(IDBDatabaseObserverImpl); |
| 33 }; |
| 34 |
| 35 } // namespace blink |
| 36 } // namespace mojom |
| 37 } // namespace indexed_db |
| 38 |
| 39 #endif // IDBDatabaseObserver_h |
OLD | NEW |