| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 std::unique_ptr<OfflinePageMetadataStore> store, | 61 std::unique_ptr<OfflinePageMetadataStore> store, |
| 62 const base::FilePath& archives_dir, | 62 const base::FilePath& archives_dir, |
| 63 const scoped_refptr<base::SequencedTaskRunner>& task_runner); | 63 const scoped_refptr<base::SequencedTaskRunner>& task_runner); |
| 64 ~OfflinePageModelImpl() override; | 64 ~OfflinePageModelImpl() override; |
| 65 | 65 |
| 66 // Implemented methods: | 66 // Implemented methods: |
| 67 void AddObserver(Observer* observer) override; | 67 void AddObserver(Observer* observer) override; |
| 68 void RemoveObserver(Observer* observer) override; | 68 void RemoveObserver(Observer* observer) override; |
| 69 void SavePage(const GURL& url, | 69 void SavePage(const GURL& url, |
| 70 const ClientId& client_id, | 70 const ClientId& client_id, |
| 71 int64_t proposed_offline_id, |
| 71 std::unique_ptr<OfflinePageArchiver> archiver, | 72 std::unique_ptr<OfflinePageArchiver> archiver, |
| 72 const SavePageCallback& callback) override; | 73 const SavePageCallback& callback) override; |
| 73 void MarkPageAccessed(int64_t offline_id) override; | 74 void MarkPageAccessed(int64_t offline_id) override; |
| 74 void ClearAll(const base::Closure& callback) override; | 75 void ClearAll(const base::Closure& callback) override; |
| 75 void DeletePagesByOfflineId(const std::vector<int64_t>& offline_ids, | 76 void DeletePagesByOfflineId(const std::vector<int64_t>& offline_ids, |
| 76 const DeletePageCallback& callback) override; | 77 const DeletePageCallback& callback) override; |
| 77 void DeletePagesByURLPredicate(const UrlPredicate& predicate, | 78 void DeletePagesByURLPredicate(const UrlPredicate& predicate, |
| 78 const DeletePageCallback& callback) override; | 79 const DeletePageCallback& callback) override; |
| 79 void HasPages(const std::string& name_space, | 80 void HasPages(const std::string& name_space, |
| 80 const HasPagesCallback& callback) override; | 81 const HasPagesCallback& callback) override; |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 OfflinePageModelEventLogger offline_event_logger_; | 297 OfflinePageModelEventLogger offline_event_logger_; |
| 297 | 298 |
| 298 base::WeakPtrFactory<OfflinePageModelImpl> weak_ptr_factory_; | 299 base::WeakPtrFactory<OfflinePageModelImpl> weak_ptr_factory_; |
| 299 | 300 |
| 300 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelImpl); | 301 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelImpl); |
| 301 }; | 302 }; |
| 302 | 303 |
| 303 } // namespace offline_pages | 304 } // namespace offline_pages |
| 304 | 305 |
| 305 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ | 306 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ |
| OLD | NEW |