Chromium Code Reviews| 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_OFFLINE_PAGE_MODEL_IMPL_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 189 bool success); | 189 bool success); |
| 190 void InformDeletePageDone(const DeletePageCallback& callback, | 190 void InformDeletePageDone(const DeletePageCallback& callback, |
| 191 DeletePageResult result); | 191 DeletePageResult result); |
| 192 | 192 |
| 193 void OnMarkPageAccesseDone(const OfflinePageItem& offline_page_item, | 193 void OnMarkPageAccesseDone(const OfflinePageItem& offline_page_item, |
| 194 bool success); | 194 bool success); |
| 195 | 195 |
| 196 // Callbacks for checking if offline pages are missing archive files. | 196 // Callbacks for checking if offline pages are missing archive files. |
| 197 void ScanForMissingArchiveFiles( | 197 void ScanForMissingArchiveFiles( |
| 198 const std::set<base::FilePath>& archive_paths); | 198 const std::set<base::FilePath>& archive_paths); |
| 199 void OnRemoveOfflinePagesMissingArchiveFileDone( | 199 void OnDeleteHeadlessArchivesDone(const std::vector<base::FilePath>& archives, |
|
fgorski
2016/06/07 22:46:15
Please explain what "headless" means here and why
romax
2016/06/08 01:31:26
added some explaination in comment..I'm choosing h
| |
| 200 const std::vector<std::pair<int64_t, ClientId>>& offline_client_id_pairs, | 200 bool success); |
| 201 DeletePageResult result); | 201 void OnExpireArchivelessFilesDone(const std::vector<int64_t>& offline_ids, |
| 202 bool success); | |
| 202 | 203 |
| 203 // Steps for clearing all. | 204 // Steps for clearing all. |
| 204 void OnRemoveAllFilesDoneForClearAll(const base::Closure& callback, | 205 void OnRemoveAllFilesDoneForClearAll(const base::Closure& callback, |
| 205 DeletePageResult result); | 206 DeletePageResult result); |
| 206 void OnResetStoreDoneForClearAll(const base::Closure& callback, bool success); | 207 void OnResetStoreDoneForClearAll(const base::Closure& callback, bool success); |
| 207 void OnReloadStoreDoneForClearAll( | 208 void OnReloadStoreDoneForClearAll( |
| 208 const base::Closure& callback, | 209 const base::Closure& callback, |
| 209 OfflinePageMetadataStore::LoadStatus load_status, | 210 OfflinePageMetadataStore::LoadStatus load_status, |
| 210 const std::vector<OfflinePageItem>& offline_pages); | 211 const std::vector<OfflinePageItem>& offline_pages); |
| 211 | 212 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 266 std::unique_ptr<ArchiveManager> archive_manager_; | 267 std::unique_ptr<ArchiveManager> archive_manager_; |
| 267 | 268 |
| 268 base::WeakPtrFactory<OfflinePageModelImpl> weak_ptr_factory_; | 269 base::WeakPtrFactory<OfflinePageModelImpl> weak_ptr_factory_; |
| 269 | 270 |
| 270 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelImpl); | 271 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelImpl); |
| 271 }; | 272 }; |
| 272 | 273 |
| 273 } // namespace offline_pages | 274 } // namespace offline_pages |
| 274 | 275 |
| 275 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ | 276 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ |
| OLD | NEW |