Add a stub __cxa_demangle to disable LLVM's demangler.
[chromium-blink-merge.git] / components / offline_pages / offline_page_model.cc
blob22e5495d9e16f113a04e1df0993f3553736220a4
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"
10 #include "url/gurl.h"
12 namespace offline_pages {
14 OfflinePageModel::OfflinePageModel(scoped_ptr<OfflinePageMetadataStore> store,
15 OfflinePageArchiver* archiver)
16 : store_(store.Pass()),
17 archiver_(archiver) {
18 DCHECK(archiver);
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
33 // request.
36 void OfflinePageModel::SavePage(const GURL& url,
37 OfflinePageModel::Client* client) {
38 NOTIMPLEMENTED();
41 void OfflinePageModel::DeletePage(const GURL& url,
42 OfflinePageModel::Client* client) {
43 NOTIMPLEMENTED();
46 void OfflinePageModel::LoadAllPages(OfflinePageModel::Client* client) {
47 NOTIMPLEMENTED();
50 OfflinePageMetadataStore* OfflinePageModel::GetStoreForTesting() {
51 return store_.get();
54 } // namespace offline_pages