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

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

Issue 2345133002: Offline Pages: Removes the metadata consistency check from the model API. (Closed)
Patch Set: Rebase Created 4 years, 3 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
« no previous file with comments | « components/offline_pages/stub_offline_page_model.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/stub_offline_page_model.h" 5 #include "components/offline_pages/stub_offline_page_model.h"
6 6
7 namespace offline_pages { 7 namespace offline_pages {
8 8
9 StubOfflinePageModel::StubOfflinePageModel() {} 9 StubOfflinePageModel::StubOfflinePageModel() {}
10 StubOfflinePageModel::~StubOfflinePageModel() {} 10 StubOfflinePageModel::~StubOfflinePageModel() {}
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 const GURL& offline_url) const { 54 const GURL& offline_url) const {
55 return nullptr; 55 return nullptr;
56 } 56 }
57 void StubOfflinePageModel::GetPagesByOnlineURL( 57 void StubOfflinePageModel::GetPagesByOnlineURL(
58 const GURL& online_url, 58 const GURL& online_url,
59 const MultipleOfflinePageItemCallback& callback) {} 59 const MultipleOfflinePageItemCallback& callback) {}
60 const OfflinePageItem* StubOfflinePageModel::MaybeGetBestPageForOnlineURL( 60 const OfflinePageItem* StubOfflinePageModel::MaybeGetBestPageForOnlineURL(
61 const GURL& online_url) const { 61 const GURL& online_url) const {
62 return nullptr; 62 return nullptr;
63 } 63 }
64 void StubOfflinePageModel::CheckMetadataConsistency() {}
65 void StubOfflinePageModel::ExpirePages( 64 void StubOfflinePageModel::ExpirePages(
66 const std::vector<int64_t>& offline_ids, 65 const std::vector<int64_t>& offline_ids,
67 const base::Time& expiration_time, 66 const base::Time& expiration_time,
68 const base::Callback<void(bool)>& callback) {} 67 const base::Callback<void(bool)>& callback) {}
69 ClientPolicyController* StubOfflinePageModel::GetPolicyController() { 68 ClientPolicyController* StubOfflinePageModel::GetPolicyController() {
70 return nullptr; 69 return nullptr;
71 } 70 }
72 bool StubOfflinePageModel::is_loaded() const { 71 bool StubOfflinePageModel::is_loaded() const {
73 return true; 72 return true;
74 } 73 }
75 OfflineEventLogger* StubOfflinePageModel::GetLogger() { 74 OfflineEventLogger* StubOfflinePageModel::GetLogger() {
76 return nullptr; 75 return nullptr;
77 } 76 }
78 } // namespace offline_pages 77 } // namespace offline_pages
OLDNEW
« no previous file with comments | « components/offline_pages/stub_offline_page_model.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698