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 IDBOpenRequestObserver_h |
| 6 #define IDBOpenRequestObserver_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 IDBOpenRequestObserverImpl : public mojom::blink::OpenRequestObserver { |
| 16 public: |
| 17 static OpenRequestObserverPtr Create(); |
| 18 |
| 19 private: |
| 20 ~IDBOpenRequestObserverImpl(); |
| 21 |
| 22 void Blocked(int64_t oldVersion); |
| 23 |
| 24 void UpgradeNeeded(int64_t oldVersion, DatabasePtr, DatabaseMetadataPtr, Dat
aLossInfoPtr); |
| 25 |
| 26 mojo::StrongBinding<mojom::blink::IDBOpenRequestObserverImpl> m_binding; |
| 27 |
| 28 DISALLOW_COPY_AND_ASSIGN(IDBOpenRequestObserverImpl); |
| 29 }; |
| 30 |
| 31 } // namespace blink |
| 32 } // namespace mojom |
| 33 } // namespace indexed_db |
| 34 |
| 35 #endif // IDBOpenRequestObserver_h |
OLD | NEW |