| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 std::unique_ptr<OfflinePageMetadataStore> store, | 60 std::unique_ptr<OfflinePageMetadataStore> store, |
| 61 const base::FilePath& archives_dir, | 61 const base::FilePath& archives_dir, |
| 62 const scoped_refptr<base::SequencedTaskRunner>& task_runner); | 62 const scoped_refptr<base::SequencedTaskRunner>& task_runner); |
| 63 ~OfflinePageModelImpl() override; | 63 ~OfflinePageModelImpl() override; |
| 64 | 64 |
| 65 // Implemented methods: | 65 // Implemented methods: |
| 66 void AddObserver(Observer* observer) override; | 66 void AddObserver(Observer* observer) override; |
| 67 void RemoveObserver(Observer* observer) override; | 67 void RemoveObserver(Observer* observer) override; |
| 68 void SavePage(const GURL& url, | 68 void SavePage(const GURL& url, |
| 69 const ClientId& client_id, | 69 const ClientId& client_id, |
| 70 int64_t offline_id, |
| 70 std::unique_ptr<OfflinePageArchiver> archiver, | 71 std::unique_ptr<OfflinePageArchiver> archiver, |
| 71 const SavePageCallback& callback) override; | 72 const SavePageCallback& callback) override; |
| 72 void MarkPageAccessed(int64_t offline_id) override; | 73 void MarkPageAccessed(int64_t offline_id) override; |
| 73 void ClearAll(const base::Closure& callback) override; | 74 void ClearAll(const base::Closure& callback) override; |
| 74 void DeletePagesByOfflineId(const std::vector<int64_t>& offline_ids, | 75 void DeletePagesByOfflineId(const std::vector<int64_t>& offline_ids, |
| 75 const DeletePageCallback& callback) override; | 76 const DeletePageCallback& callback) override; |
| 76 void DeletePagesByURLPredicate(const UrlPredicate& predicate, | 77 void DeletePagesByURLPredicate(const UrlPredicate& predicate, |
| 77 const DeletePageCallback& callback) override; | 78 const DeletePageCallback& callback) override; |
| 78 void HasPages(const std::string& name_space, | 79 void HasPages(const std::string& name_space, |
| 79 const HasPagesCallback& callback) override; | 80 const HasPagesCallback& callback) override; |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 OfflinePageModelEventLogger offline_event_logger_; | 295 OfflinePageModelEventLogger offline_event_logger_; |
| 295 | 296 |
| 296 base::WeakPtrFactory<OfflinePageModelImpl> weak_ptr_factory_; | 297 base::WeakPtrFactory<OfflinePageModelImpl> weak_ptr_factory_; |
| 297 | 298 |
| 298 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelImpl); | 299 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelImpl); |
| 299 }; | 300 }; |
| 300 | 301 |
| 301 } // namespace offline_pages | 302 } // namespace offline_pages |
| 302 | 303 |
| 303 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ | 304 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ |
| OLD | NEW |