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
3 // found in the LICENSE file.
5 #include "components/offline_pages/offline_page_model.h"
7 #include "base/logging.h"
8 #include "components/offline_pages/offline_page_item.h"
9 #include "components/offline_pages/offline_page_metadata_store.h"
12 namespace offline_pages
{
14 OfflinePageModel::OfflinePageModel(scoped_ptr
<OfflinePageMetadataStore
> store
,
15 OfflinePageArchiver
* archiver
)
16 : store_(store
.Pass()),
21 OfflinePageModel::~OfflinePageModel() {
24 void OfflinePageModel::Shutdown() {
27 void OfflinePageModel::OnCreateArchiveDone(
28 OfflinePageArchiver::Request
* request
,
29 OfflinePageArchiver::ArchiverResult result
,
30 const base::FilePath
& file_path
) {
31 // TODO(fgorski): Match request against one of the expected requests
32 // TODO(fgorski): Create an entry in the offline pages metadata store for that
36 void OfflinePageModel::SavePage(const GURL
& url
,
37 OfflinePageModel::Client
* client
) {
41 void OfflinePageModel::DeletePage(const GURL
& url
,
42 OfflinePageModel::Client
* client
) {
46 void OfflinePageModel::LoadAllPages(OfflinePageModel::Client
* client
) {
50 OfflinePageMetadataStore
* OfflinePageModel::GetStoreForTesting() {
54 } // namespace offline_pages