| 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 GetPagesByOnlineURL( | 55 void GetPagesByOnlineURL( |
| 58 const GURL& online_url, | 56 const GURL& online_url, |
| 59 const MultipleOfflinePageItemCallback& callback) override; | 57 const MultipleOfflinePageItemCallback& callback) override; |
| 60 void ExpirePages(const std::vector<int64_t>& offline_ids, | |
| 61 const base::Time& expiration_time, | |
| 62 const base::Callback<void(bool)>& callback) override; | |
| 63 ClientPolicyController* GetPolicyController() override; | 58 ClientPolicyController* GetPolicyController() override; |
| 64 bool is_loaded() const override; | 59 bool is_loaded() const override; |
| 65 OfflineEventLogger* GetLogger() override; | 60 OfflineEventLogger* GetLogger() override; |
| 66 | 61 |
| 67 private: | 62 private: |
| 68 ClientPolicyController policy_controller_; | 63 ClientPolicyController policy_controller_; |
| 69 std::vector<int64_t> offline_ids_; | 64 std::vector<int64_t> offline_ids_; |
| 70 }; | 65 }; |
| 71 | 66 |
| 72 } // namespace offline_pages | 67 } // namespace offline_pages |
| 73 | 68 |
| 74 #endif // COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_ | 69 #endif // COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_ |
| OLD | NEW |