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_STUB_OFFLINE_PAGE_MODEL_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_ |
6 #define COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 12 matching lines...) Expand all Loading... |
23 ~StubOfflinePageModel() override; | 23 ~StubOfflinePageModel() override; |
24 | 24 |
25 void AddObserver(Observer* observer) override; | 25 void AddObserver(Observer* observer) override; |
26 void RemoveObserver(Observer* observer) override; | 26 void RemoveObserver(Observer* observer) override; |
27 void SavePage(const GURL& url, | 27 void SavePage(const GURL& url, |
28 const ClientId& client_id, | 28 const ClientId& client_id, |
29 int64_t proposed_offline_id, | 29 int64_t proposed_offline_id, |
30 std::unique_ptr<OfflinePageArchiver> archiver, | 30 std::unique_ptr<OfflinePageArchiver> archiver, |
31 const SavePageCallback& callback) override; | 31 const SavePageCallback& callback) override; |
32 void MarkPageAccessed(int64_t offline_id) override; | 32 void MarkPageAccessed(int64_t offline_id) override; |
33 void ClearAll(const base::Closure& callback) override; | |
34 void DeletePagesByOfflineId(const std::vector<int64_t>& offline_ids, | 33 void DeletePagesByOfflineId(const std::vector<int64_t>& offline_ids, |
35 const DeletePageCallback& callback) override; | 34 const DeletePageCallback& callback) override; |
36 void DeleteCachedPagesByURLPredicate( | 35 void DeleteCachedPagesByURLPredicate( |
37 const UrlPredicate& predicate, | 36 const UrlPredicate& predicate, |
38 const DeletePageCallback& callback) override; | 37 const DeletePageCallback& callback) override; |
39 void CheckPagesExistOffline( | 38 void CheckPagesExistOffline( |
40 const std::set<GURL>& urls, | 39 const std::set<GURL>& urls, |
41 const CheckPagesExistOfflineCallback& callback) override; | 40 const CheckPagesExistOfflineCallback& callback) override; |
42 void GetAllPages(const MultipleOfflinePageItemCallback& callback) override; | 41 void GetAllPages(const MultipleOfflinePageItemCallback& callback) override; |
43 void GetAllPagesWithExpired( | 42 void GetAllPagesWithExpired( |
(...skipping 26 matching lines...) Expand all Loading... |
70 bool is_loaded() const override; | 69 bool is_loaded() const override; |
71 OfflineEventLogger* GetLogger() override; | 70 OfflineEventLogger* GetLogger() override; |
72 | 71 |
73 private: | 72 private: |
74 std::vector<int64_t> offline_ids_; | 73 std::vector<int64_t> offline_ids_; |
75 }; | 74 }; |
76 | 75 |
77 } // namespace offline_pages | 76 } // namespace offline_pages |
78 | 77 |
79 #endif // COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_ | 78 #endif // COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_ |
OLD | NEW |