| Index: content/browser/indexed_db/indexed_db_open_request_observer_impl.h
|
| diff --git a/content/browser/indexed_db/indexed_db_open_request_observer_impl.h b/content/browser/indexed_db/indexed_db_open_request_observer_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e5b713bb69ab926930d302d795f2479d82bc2dc6
|
| --- /dev/null
|
| +++ b/content/browser/indexed_db/indexed_db_open_request_observer_impl.h
|
| @@ -0,0 +1,40 @@
|
| +// 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 CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OPEN_REQUEST_OBSERVER_IMPL_H_
|
| +#define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OPEN_REQUEST_OBSERVER_IMPL_H_
|
| +
|
| +#include "content/browser/indexed_db/indexed_db_open_request_observer.h"
|
| +#include "third_party/WebKit/Source/modules/indexeddb/indexed_db.mojom.h"
|
| +
|
| +namespace content {
|
| +
|
| +class CONTENT_EXPORT IndexedDBOpenRequestObserverImpl
|
| + : public IndexedDBOpenRequestObserver {
|
| + public:
|
| + IndexedDBOpenRequestObserverImpl(
|
| + ::indexed_db::mojom::OpenRequestObserverPtr observer);
|
| +
|
| + // content::IndexedDBOpenRequestObserver::
|
| + void OnBlocked(int64_t old_version) override;
|
| + void OnUpgradeNeeded(
|
| + int64_t old_version,
|
| + IndexedDBConnection* connection,
|
| + const IndexedDBDataLossInfo& data_loss_info,
|
| + const IndexedDBDatabaseMetadata& index_metadata) override;
|
| +
|
| + protected:
|
| + ~IndexedDBOpenRequestObserverImpl() override;
|
| +
|
| + private:
|
| + friend class base::RefCounted<IndexedDBOpenRequestObserverImpl>;
|
| +
|
| + ::indexed_db::mojom::OpenRequestObserverPtr observer_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(IndexedDBOpenRequestObserverImpl);
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OPEN_REQUEST_OBSERVER_IMPL_H_
|
|
|