| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 void GetOfflineIdsForClientId( | 46 void GetOfflineIdsForClientId( |
| 47 const ClientId& client_id, | 47 const ClientId& client_id, |
| 48 const MultipleOfflineIdCallback& callback) override; | 48 const MultipleOfflineIdCallback& callback) override; |
| 49 const std::vector<int64_t> MaybeGetOfflineIdsForClientId( | 49 const std::vector<int64_t> MaybeGetOfflineIdsForClientId( |
| 50 const ClientId& client_id) const override; | 50 const ClientId& client_id) const override; |
| 51 void GetPageByOfflineId( | 51 void GetPageByOfflineId( |
| 52 int64_t offline_id, | 52 int64_t offline_id, |
| 53 const SingleOfflinePageItemCallback& callback) override; | 53 const SingleOfflinePageItemCallback& callback) override; |
| 54 const OfflinePageItem* MaybeGetPageByOfflineId( | 54 const OfflinePageItem* MaybeGetPageByOfflineId( |
| 55 int64_t offline_id) const override; | 55 int64_t offline_id) const override; |
| 56 void GetPageByOfflineURL( | |
| 57 const GURL& offline_url, | |
| 58 const SingleOfflinePageItemCallback& callback) override; | |
| 59 const OfflinePageItem* MaybeGetPageByOfflineURL( | |
| 60 const GURL& offline_url) const override; | |
| 61 void GetPagesByOnlineURL( | 56 void GetPagesByOnlineURL( |
| 62 const GURL& online_url, | 57 const GURL& online_url, |
| 63 const MultipleOfflinePageItemCallback& callback) override; | 58 const MultipleOfflinePageItemCallback& callback) override; |
| 64 const OfflinePageItem* MaybeGetBestPageForOnlineURL( | 59 const OfflinePageItem* MaybeGetBestPageForOnlineURL( |
| 65 const GURL& online_url) const override; | 60 const GURL& online_url) const override; |
| 66 void CheckMetadataConsistency() override; | 61 void CheckMetadataConsistency() override; |
| 67 void ExpirePages(const std::vector<int64_t>& offline_ids, | 62 void ExpirePages(const std::vector<int64_t>& offline_ids, |
| 68 const base::Time& expiration_time, | 63 const base::Time& expiration_time, |
| 69 const base::Callback<void(bool)>& callback) override; | 64 const base::Callback<void(bool)>& callback) override; |
| 70 ClientPolicyController* GetPolicyController() override; | 65 ClientPolicyController* GetPolicyController() override; |
| 71 bool is_loaded() const override; | 66 bool is_loaded() const override; |
| 72 OfflineEventLogger* GetLogger() override; | 67 OfflineEventLogger* GetLogger() override; |
| 73 | 68 |
| 74 private: | 69 private: |
| 75 std::vector<int64_t> offline_ids_; | 70 std::vector<int64_t> offline_ids_; |
| 76 }; | 71 }; |
| 77 | 72 |
| 78 } // namespace offline_pages | 73 } // namespace offline_pages |
| 79 | 74 |
| 80 #endif // COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_ | 75 #endif // COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_ |
| OLD | NEW |