| 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_CORE_OFFLINE_PAGE_ARCHIVER_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_ARCHIVER_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_ARCHIVER_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_ARCHIVER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 int64_t /* file_size */)> | 74 int64_t /* file_size */)> |
| 75 CreateArchiveCallback; | 75 CreateArchiveCallback; |
| 76 | 76 |
| 77 virtual ~OfflinePageArchiver() {} | 77 virtual ~OfflinePageArchiver() {} |
| 78 | 78 |
| 79 // Starts creating the archive in the |archives_dir| per | 79 // Starts creating the archive in the |archives_dir| per |
| 80 // |create_archive_params|. Once archive is created |callback| will be called | 80 // |create_archive_params|. Once archive is created |callback| will be called |
| 81 // with the result and additional information. | 81 // with the result and additional information. |
| 82 virtual void CreateArchive(const base::FilePath& archives_dir, | 82 virtual void CreateArchive(const base::FilePath& archives_dir, |
| 83 const CreateArchiveParams& create_archive_params, | 83 const CreateArchiveParams& create_archive_params, |
| 84 const std::vector<std::string>& signal_data, |
| 84 const CreateArchiveCallback& callback) = 0; | 85 const CreateArchiveCallback& callback) = 0; |
| 85 }; | 86 }; |
| 86 | 87 |
| 87 } // namespace offline_pages | 88 } // namespace offline_pages |
| 88 | 89 |
| 89 #endif // COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_ARCHIVER_H_ | 90 #endif // COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_ARCHIVER_H_ |
| OLD | NEW |