diff options
Diffstat (limited to 'components/offline_pages/offline_page_model.cc')
-rw-r--r-- | components/offline_pages/offline_page_model.cc | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/components/offline_pages/offline_page_model.cc b/components/offline_pages/offline_page_model.cc index 5fd54d0..f357d7e3 100644 --- a/components/offline_pages/offline_page_model.cc +++ b/components/offline_pages/offline_page_model.cc @@ -11,18 +11,29 @@ namespace offline_pages { -OfflinePageModel::OfflinePageModel(scoped_ptr<OfflinePageMetadataStore> store) - : store_(store.Pass()) { +OfflinePageModel::OfflinePageModel(scoped_ptr<OfflinePageMetadataStore> store, + OfflinePageArchiver* archiver) + : store_(store.Pass()), + archiver_(archiver) { + DCHECK(archiver); } OfflinePageModel::~OfflinePageModel() { } void OfflinePageModel::Shutdown() { - NOTIMPLEMENTED(); } void OfflinePageModel::SavePageOffline(const GURL& url) { +} + +void OfflinePageModel::OnCreateArchiveDone( + OfflinePageArchiver::Request* request, + OfflinePageArchiver::ArchiverResult result, + const base::FilePath& file_path) { + // TODO(fgorski): Match request against one of the expected requests + // TODO(fgorski): Create an entry in the offline pages metadata store for that + // request. NOTIMPLEMENTED(); } |