Chromium Code Reviews| 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 #include "components/offline_pages/offline_page_model.h" | 5 #include "components/offline_pages/offline_page_model.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "components/offline_pages/offline_page_item.h" | 8 #include "components/offline_pages/offline_page_item.h" |
| 9 #include "components/offline_pages/offline_page_metadata_store.h" | |
| 9 #include "url/gurl.h" | 10 #include "url/gurl.h" |
| 10 | 11 |
| 11 namespace offline_pages { | 12 namespace offline_pages { |
| 12 | 13 |
| 13 OfflinePageModel::OfflinePageModel() { | 14 OfflinePageModel::OfflinePageModel() { |
| 14 } | 15 } |
| 15 | 16 |
| 16 OfflinePageModel::~OfflinePageModel() { | 17 OfflinePageModel::~OfflinePageModel() { |
| 17 } | 18 } |
| 18 | 19 |
| 19 void OfflinePageModel::Shutdown() { | 20 void OfflinePageModel::Shutdown() { |
| 20 NOTIMPLEMENTED(); | 21 NOTIMPLEMENTED(); |
| 21 } | 22 } |
| 22 | 23 |
| 24 void OfflinePageModel::Initialize(scoped_ptr<OfflinePageMetadataStore> store) { | |
| 25 DCHECK(store.get()); | |
| 26 store_ = store.Pass(); | |
|
Dmitry Titov
2015/06/09 21:58:05
This looks like part of a constructor now. Can it
fgorski
2015/06/09 22:11:13
Done.
| |
| 27 } | |
| 28 | |
| 23 void OfflinePageModel::SavePageOffline(const GURL& url) { | 29 void OfflinePageModel::SavePageOffline(const GURL& url) { |
| 24 NOTIMPLEMENTED(); | 30 NOTIMPLEMENTED(); |
| 25 } | 31 } |
| 26 | 32 |
| 27 std::vector<OfflinePageItem> OfflinePageModel::GetAllOfflinePages() { | 33 std::vector<OfflinePageItem> OfflinePageModel::GetAllOfflinePages() { |
| 28 NOTIMPLEMENTED(); | 34 NOTIMPLEMENTED(); |
| 29 return std::vector<OfflinePageItem>(); | 35 return std::vector<OfflinePageItem>(); |
| 30 } | 36 } |
| 31 | 37 |
| 38 OfflinePageMetadataStore* OfflinePageModel::GetStoreForTesting() { | |
| 39 return store_.get(); | |
| 40 } | |
| 41 | |
| 32 } // namespace offline_pages | 42 } // namespace offline_pages |
| OLD | NEW |