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 CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OPEN_REQUEST_OBSERVER_IMPL_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OPEN_REQUEST_OBSERVER_IMPL_H_ |
| 7 |
| 8 #include "content/browser/indexed_db/indexed_db_open_request_observer.h" |
| 9 #include "third_party/WebKit/Source/modules/indexeddb/indexed_db.mojom.h" |
| 10 |
| 11 namespace content { |
| 12 |
| 13 class CONTENT_EXPORT IndexedDBOpenRequestObserverImpl |
| 14 : public IndexedDBOpenRequestObserver { |
| 15 public: |
| 16 IndexedDBOpenRequestObserverImpl( |
| 17 ::indexed_db::mojom::OpenRequestObserverPtr observer); |
| 18 |
| 19 // content::IndexedDBOpenRequestObserver:: |
| 20 void OnBlocked(int64_t old_version) override; |
| 21 void OnUpgradeNeeded( |
| 22 int64_t old_version, |
| 23 IndexedDBConnection* connection, |
| 24 const IndexedDBDataLossInfo& data_loss_info, |
| 25 const IndexedDBDatabaseMetadata& index_metadata) override; |
| 26 |
| 27 protected: |
| 28 ~IndexedDBOpenRequestObserverImpl() override; |
| 29 |
| 30 private: |
| 31 friend class base::RefCounted<IndexedDBOpenRequestObserverImpl>; |
| 32 |
| 33 ::indexed_db::mojom::OpenRequestObserverPtr observer_; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(IndexedDBOpenRequestObserverImpl); |
| 36 }; |
| 37 |
| 38 } // namespace content |
| 39 |
| 40 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OPEN_REQUEST_OBSERVER_IMPL_H_ |
OLD | NEW |