Chromium Code Reviews| Index: components/offline_pages/core/offline_page_archiver.h |
| diff --git a/components/offline_pages/core/offline_page_archiver.h b/components/offline_pages/core/offline_page_archiver.h |
| index c224ef958e4ffeee55ac73d4cb6f59560d785856..17631406db34fd76b9b2895dd1a5779a9fdb7db4 100644 |
| --- a/components/offline_pages/core/offline_page_archiver.h |
| +++ b/components/offline_pages/core/offline_page_archiver.h |
| @@ -58,6 +58,14 @@ class OfflinePageArchiver { |
| // there was a security error. |
| }; |
| + // Describes the parameters to control how to create an archive. |
| + struct CreateArchiveParams { |
|
fgorski
2017/01/19 17:59:08
you could add parameter to indicate whether the wo
jianli
2017/01/19 23:55:22
I will add this parameter to SavePageParams. Here
|
| + CreateArchiveParams() : remove_popup_overlay(false) {} |
| + |
| + // Whether to remove popup overlay that obstructs viewing normal content. |
| + bool remove_popup_overlay; |
| + }; |
| + |
| typedef base::Callback<void(OfflinePageArchiver* /* archiver */, |
| ArchiverResult /* result */, |
| const GURL& /* url */, |
| @@ -68,11 +76,11 @@ class OfflinePageArchiver { |
| virtual ~OfflinePageArchiver() {} |
| - // Starts creating the archive in the |archives_dir| with |archive_id| added |
| - // to the archive filename. Once archive is created |callback| will be called |
| + // Starts creating the archive in the |archives_dir| per |
| + // |create_archive_params|. Once archive is created |callback| will be called |
| // with the result and additional information. |
| virtual void CreateArchive(const base::FilePath& archives_dir, |
| - int64_t archive_id, |
| + const CreateArchiveParams& create_archive_params, |
| const CreateArchiveCallback& callback) = 0; |
| }; |