| Index: components/offline_pages/offline_page_metadata_store_sql.h
|
| diff --git a/components/offline_pages/offline_page_metadata_store_sql.h b/components/offline_pages/offline_page_metadata_store_sql.h
|
| index d5e2a0c0eb308835abe10c6a1e126aed4729ee13..c3c50f2adaa057218792e4cbb93410bbebb027ae 100644
|
| --- a/components/offline_pages/offline_page_metadata_store_sql.h
|
| +++ b/components/offline_pages/offline_page_metadata_store_sql.h
|
| @@ -43,21 +43,6 @@ class OfflinePageMetadataStoreSQL : public OfflinePageMetadataStore {
|
| StoreState state() const override;
|
|
|
| private:
|
| - // Synchronous implementations, these are run on the background thread
|
| - // and actually do the work to access SQL. The implementations above
|
| - // simply dispatch to the corresponding *Sync method on the background thread.
|
| - // 'runner' is where to run the callback.
|
| - static void AddOrUpdateOfflinePageSync(
|
| - const OfflinePageItem& offline_page,
|
| - sql::Connection* db,
|
| - scoped_refptr<base::SingleThreadTaskRunner> runner,
|
| - const UpdateCallback& callback);
|
| - static void RemoveOfflinePagesSync(
|
| - const std::vector<int64_t>& offline_ids,
|
| - sql::Connection* db,
|
| - scoped_refptr<base::SingleThreadTaskRunner> runner,
|
| - const UpdateCallback& callback);
|
| -
|
| // Used to initialize DB connection.
|
| void OpenConnection();
|
| void OnOpenConnectionDone(StoreState state);
|
| @@ -75,9 +60,13 @@ class OfflinePageMetadataStoreSQL : public OfflinePageMetadataStore {
|
|
|
| // Path to the database on disk.
|
| base::FilePath db_file_path_;
|
| +
|
| + // Database connection.
|
| std::unique_ptr<sql::Connection> db_;
|
|
|
| + // State of the store.
|
| StoreState state_;
|
| +
|
| base::WeakPtrFactory<OfflinePageMetadataStoreSQL> weak_ptr_factory_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(OfflinePageMetadataStoreSQL);
|
|
|