| 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_TEST_ARCHIVER_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_TEST_ARCHIVER_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_TEST_ARCHIVER_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_TEST_ARCHIVER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 const GURL& url, | 40 const GURL& url, |
| 41 ArchiverResult result, | 41 ArchiverResult result, |
| 42 const base::string16& result_title, | 42 const base::string16& result_title, |
| 43 int64_t size_to_report, | 43 int64_t size_to_report, |
| 44 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner); | 44 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner); |
| 45 ~OfflinePageTestArchiver() override; | 45 ~OfflinePageTestArchiver() override; |
| 46 | 46 |
| 47 // OfflinePageArchiver implementation: | 47 // OfflinePageArchiver implementation: |
| 48 void CreateArchive(const base::FilePath& archives_dir, | 48 void CreateArchive(const base::FilePath& archives_dir, |
| 49 const CreateArchiveParams& create_archive_params, | 49 const CreateArchiveParams& create_archive_params, |
| 50 const std::vector<std::string>& signal_data, |
| 50 const CreateArchiveCallback& callback) override; | 51 const CreateArchiveCallback& callback) override; |
| 51 | 52 |
| 52 // Completes the creation of archive. Should be used with |set_delayed| set to | 53 // Completes the creation of archive. Should be used with |set_delayed| set to |
| 53 // true. | 54 // true. |
| 54 void CompleteCreateArchive(); | 55 void CompleteCreateArchive(); |
| 55 | 56 |
| 56 // When set to true, |CompleteCreateArchive| should be called explicitly for | 57 // When set to true, |CompleteCreateArchive| should be called explicitly for |
| 57 // the process to finish. | 58 // the process to finish. |
| 58 // TODO(fgorski): See if we can move this to the constructor. | 59 // TODO(fgorski): See if we can move this to the constructor. |
| 59 void set_delayed(bool delayed) { delayed_ = delayed; } | 60 void set_delayed(bool delayed) { delayed_ = delayed; } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 82 base::string16 result_title_; | 83 base::string16 result_title_; |
| 83 CreateArchiveCallback callback_; | 84 CreateArchiveCallback callback_; |
| 84 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 85 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
| 85 | 86 |
| 86 DISALLOW_COPY_AND_ASSIGN(OfflinePageTestArchiver); | 87 DISALLOW_COPY_AND_ASSIGN(OfflinePageTestArchiver); |
| 87 }; | 88 }; |
| 88 | 89 |
| 89 } // namespace offline_pages | 90 } // namespace offline_pages |
| 90 | 91 |
| 91 #endif // COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_TEST_ARCHIVER_H_ | 92 #endif // COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_TEST_ARCHIVER_H_ |
| OLD | NEW |