| 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_CORE_OFFLINE_PAGE_MODEL_IMPL_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_IMPL_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_IMPL_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 const base::string16& title, | 168 const base::string16& title, |
| 169 int64_t file_size); | 169 int64_t file_size); |
| 170 void OnAddOfflinePageDone(OfflinePageArchiver* archiver, | 170 void OnAddOfflinePageDone(OfflinePageArchiver* archiver, |
| 171 const base::FilePath& file_path, | 171 const base::FilePath& file_path, |
| 172 const SavePageCallback& callback, | 172 const SavePageCallback& callback, |
| 173 const OfflinePageItem& offline_page, | 173 const OfflinePageItem& offline_page, |
| 174 ItemActionStatus status); | 174 ItemActionStatus status); |
| 175 void InformSavePageDone(const SavePageCallback& callback, | 175 void InformSavePageDone(const SavePageCallback& callback, |
| 176 SavePageResult result, | 176 SavePageResult result, |
| 177 const ClientId& client_id, | 177 const ClientId& client_id, |
| 178 int64_t offline_id); | 178 int64_t offline_id, |
| 179 const base::FilePath& file_path); |
| 179 void DeletePendingArchiver(OfflinePageArchiver* archiver); | 180 void DeletePendingArchiver(OfflinePageArchiver* archiver); |
| 180 | 181 |
| 181 // Steps for deleting files and data for an offline page. | 182 // Steps for deleting files and data for an offline page. |
| 182 void OnDeleteArchiveFilesDone(const std::vector<int64_t>& offline_ids, | 183 void OnDeleteArchiveFilesDone(const std::vector<int64_t>& offline_ids, |
| 183 const DeletePageCallback& callback, | 184 const DeletePageCallback& callback, |
| 184 bool success); | 185 bool success); |
| 185 void OnRemoveOfflinePagesDone( | 186 void OnRemoveOfflinePagesDone( |
| 186 const DeletePageCallback& callback, | 187 const DeletePageCallback& callback, |
| 187 std::unique_ptr<OfflinePagesUpdateResult> result); | 188 std::unique_ptr<OfflinePagesUpdateResult> result); |
| 188 void InformDeletePageDone(const DeletePageCallback& callback, | 189 void InformDeletePageDone(const DeletePageCallback& callback, |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 base::Clock* testing_clock_; | 288 base::Clock* testing_clock_; |
| 288 | 289 |
| 289 base::WeakPtrFactory<OfflinePageModelImpl> weak_ptr_factory_; | 290 base::WeakPtrFactory<OfflinePageModelImpl> weak_ptr_factory_; |
| 290 | 291 |
| 291 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelImpl); | 292 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelImpl); |
| 292 }; | 293 }; |
| 293 | 294 |
| 294 } // namespace offline_pages | 295 } // namespace offline_pages |
| 295 | 296 |
| 296 #endif // COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_IMPL_H_ | 297 #endif // COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_IMPL_H_ |
| OLD | NEW |