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 28 matching lines...) Expand all Loading... |
39 void GetPagesByClientIds( | 39 void GetPagesByClientIds( |
40 const std::vector<ClientId>& client_ids, | 40 const std::vector<ClientId>& client_ids, |
41 const MultipleOfflinePageItemCallback& callback) override; | 41 const MultipleOfflinePageItemCallback& callback) override; |
42 void DeleteCachedPagesByURLPredicate( | 42 void DeleteCachedPagesByURLPredicate( |
43 const UrlPredicate& predicate, | 43 const UrlPredicate& predicate, |
44 const DeletePageCallback& callback) override; | 44 const DeletePageCallback& callback) override; |
45 void CheckPagesExistOffline( | 45 void CheckPagesExistOffline( |
46 const std::set<GURL>& urls, | 46 const std::set<GURL>& urls, |
47 const CheckPagesExistOfflineCallback& callback) override; | 47 const CheckPagesExistOfflineCallback& callback) override; |
48 void GetAllPages(const MultipleOfflinePageItemCallback& callback) override; | 48 void GetAllPages(const MultipleOfflinePageItemCallback& callback) override; |
49 void GetAllPagesWithExpired( | |
50 const MultipleOfflinePageItemCallback& callback) override; | |
51 void GetOfflineIdsForClientId( | 49 void GetOfflineIdsForClientId( |
52 const ClientId& client_id, | 50 const ClientId& client_id, |
53 const MultipleOfflineIdCallback& callback) override; | 51 const MultipleOfflineIdCallback& callback) override; |
54 void GetPageByOfflineId( | 52 void GetPageByOfflineId( |
55 int64_t offline_id, | 53 int64_t offline_id, |
56 const SingleOfflinePageItemCallback& callback) override; | 54 const SingleOfflinePageItemCallback& callback) override; |
57 void GetPagesByURL( | 55 void GetPagesByURL( |
58 const GURL& url, | 56 const GURL& url, |
59 URLSearchMode url_search_mode, | 57 URLSearchMode url_search_mode, |
60 const MultipleOfflinePageItemCallback& callback) override; | 58 const MultipleOfflinePageItemCallback& callback) override; |
61 void ExpirePages(const std::vector<int64_t>& offline_ids, | |
62 const base::Time& expiration_time, | |
63 const base::Callback<void(bool)>& callback) override; | |
64 ClientPolicyController* GetPolicyController() override; | 59 ClientPolicyController* GetPolicyController() override; |
65 bool is_loaded() const override; | 60 bool is_loaded() const override; |
66 OfflineEventLogger* GetLogger() override; | 61 OfflineEventLogger* GetLogger() override; |
67 | 62 |
68 private: | 63 private: |
69 ClientPolicyController policy_controller_; | 64 ClientPolicyController policy_controller_; |
70 std::vector<int64_t> offline_ids_; | 65 std::vector<int64_t> offline_ids_; |
71 }; | 66 }; |
72 | 67 |
73 } // namespace offline_pages | 68 } // namespace offline_pages |
74 | 69 |
75 #endif // COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_ | 70 #endif // COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_ |
OLD | NEW |