| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 OfflinePageArchiver::ArchiverResult result, | 309 OfflinePageArchiver::ArchiverResult result, |
| 310 const GURL& url, | 310 const GURL& url, |
| 311 const base::FilePath& file_path, | 311 const base::FilePath& file_path, |
| 312 int64_t file_size); | 312 int64_t file_size); |
| 313 void OnAddOfflinePageDone(OfflinePageArchiver* archiver, | 313 void OnAddOfflinePageDone(OfflinePageArchiver* archiver, |
| 314 const SavePageCallback& callback, | 314 const SavePageCallback& callback, |
| 315 const OfflinePageItem& offline_page, | 315 const OfflinePageItem& offline_page, |
| 316 bool success); | 316 bool success); |
| 317 void InformSavePageDone(const SavePageCallback& callback, | 317 void InformSavePageDone(const SavePageCallback& callback, |
| 318 SavePageResult result, | 318 SavePageResult result, |
| 319 const ClientId& client_id, |
| 319 int64_t offline_id); | 320 int64_t offline_id); |
| 320 void DeletePendingArchiver(OfflinePageArchiver* archiver); | 321 void DeletePendingArchiver(OfflinePageArchiver* archiver); |
| 321 | 322 |
| 322 // Steps for deleting files and data for an offline page. | 323 // Steps for deleting files and data for an offline page. |
| 323 void OnDeleteArchiveFilesDone(const std::vector<int64_t>& offline_ids, | 324 void OnDeleteArchiveFilesDone(const std::vector<int64_t>& offline_ids, |
| 324 const DeletePageCallback& callback, | 325 const DeletePageCallback& callback, |
| 325 const bool* success); | 326 const bool* success); |
| 326 void OnRemoveOfflinePagesDone(const std::vector<int64_t>& offline_ids, | 327 void OnRemoveOfflinePagesDone(const std::vector<int64_t>& offline_ids, |
| 327 const DeletePageCallback& callback, | 328 const DeletePageCallback& callback, |
| 328 bool success); | 329 bool success); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 std::vector<base::Closure> delayed_tasks_; | 386 std::vector<base::Closure> delayed_tasks_; |
| 386 | 387 |
| 387 base::WeakPtrFactory<OfflinePageModel> weak_ptr_factory_; | 388 base::WeakPtrFactory<OfflinePageModel> weak_ptr_factory_; |
| 388 | 389 |
| 389 DISALLOW_COPY_AND_ASSIGN(OfflinePageModel); | 390 DISALLOW_COPY_AND_ASSIGN(OfflinePageModel); |
| 390 }; | 391 }; |
| 391 | 392 |
| 392 } // namespace offline_pages | 393 } // namespace offline_pages |
| 393 | 394 |
| 394 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ | 395 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ |
| OLD | NEW |