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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 void GetPageByOfflineURL( | 55 void GetPageByOfflineURL( |
56 const GURL& offline_url, | 56 const GURL& offline_url, |
57 const SingleOfflinePageItemCallback& callback) override; | 57 const SingleOfflinePageItemCallback& callback) override; |
58 const OfflinePageItem* MaybeGetPageByOfflineURL( | 58 const OfflinePageItem* MaybeGetPageByOfflineURL( |
59 const GURL& offline_url) const override; | 59 const GURL& offline_url) const override; |
60 void GetPagesByOnlineURL( | 60 void GetPagesByOnlineURL( |
61 const GURL& online_url, | 61 const GURL& online_url, |
62 const MultipleOfflinePageItemCallback& callback) override; | 62 const MultipleOfflinePageItemCallback& callback) override; |
63 const OfflinePageItem* MaybeGetBestPageForOnlineURL( | 63 const OfflinePageItem* MaybeGetBestPageForOnlineURL( |
64 const GURL& online_url) const override; | 64 const GURL& online_url) const override; |
65 void CheckMetadataConsistency() override; | |
66 void ExpirePages(const std::vector<int64_t>& offline_ids, | 65 void ExpirePages(const std::vector<int64_t>& offline_ids, |
67 const base::Time& expiration_time, | 66 const base::Time& expiration_time, |
68 const base::Callback<void(bool)>& callback) override; | 67 const base::Callback<void(bool)>& callback) override; |
69 ClientPolicyController* GetPolicyController() override; | 68 ClientPolicyController* GetPolicyController() override; |
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 |