Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: components/offline_pages/offline_page_model.cc

Issue 1160283003: [Offline] Creates metadata store interface for offline pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@offline-pages-1
Patch Set: Addressing feedback Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698