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

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

Issue 2142703002: [Offline Pages] Showing expired pages in internal page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests. Created 4 years, 5 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 13 matching lines...) Expand all
24 void StubOfflinePageModel::DeletePagesByURLPredicate( 24 void StubOfflinePageModel::DeletePagesByURLPredicate(
25 const UrlPredicate& predicate, 25 const UrlPredicate& predicate,
26 const DeletePageCallback& callback) {} 26 const DeletePageCallback& callback) {}
27 void StubOfflinePageModel::HasPages(const std::string& name_space, 27 void StubOfflinePageModel::HasPages(const std::string& name_space,
28 const HasPagesCallback& callback) {} 28 const HasPagesCallback& callback) {}
29 void StubOfflinePageModel::CheckPagesExistOffline( 29 void StubOfflinePageModel::CheckPagesExistOffline(
30 const std::set<GURL>& urls, 30 const std::set<GURL>& urls,
31 const CheckPagesExistOfflineCallback& callback) {} 31 const CheckPagesExistOfflineCallback& callback) {}
32 void StubOfflinePageModel::GetAllPages( 32 void StubOfflinePageModel::GetAllPages(
33 const MultipleOfflinePageItemCallback& callback) {} 33 const MultipleOfflinePageItemCallback& callback) {}
34 void StubOfflinePageModel::GetAllPagesWithExpired(
35 const MultipleOfflinePageItemCallback& callback) {}
34 void StubOfflinePageModel::GetOfflineIdsForClientId( 36 void StubOfflinePageModel::GetOfflineIdsForClientId(
35 const ClientId& client_id, 37 const ClientId& client_id,
36 const MultipleOfflineIdCallback& callback) {} 38 const MultipleOfflineIdCallback& callback) {}
37 const std::vector<int64_t> StubOfflinePageModel::MaybeGetOfflineIdsForClientId( 39 const std::vector<int64_t> StubOfflinePageModel::MaybeGetOfflineIdsForClientId(
38 const ClientId& client_id) const { 40 const ClientId& client_id) const {
39 std::vector<int64_t> offline_ids; 41 std::vector<int64_t> offline_ids;
40 return offline_ids; 42 return offline_ids;
41 } 43 }
42 void StubOfflinePageModel::GetPageByOfflineId( 44 void StubOfflinePageModel::GetPageByOfflineId(
43 int64_t offline_id, 45 int64_t offline_id,
(...skipping 27 matching lines...) Expand all
71 ClientPolicyController* StubOfflinePageModel::GetPolicyController() { 73 ClientPolicyController* StubOfflinePageModel::GetPolicyController() {
72 return nullptr; 74 return nullptr;
73 } 75 }
74 bool StubOfflinePageModel::is_loaded() const { 76 bool StubOfflinePageModel::is_loaded() const {
75 return true; 77 return true;
76 } 78 }
77 OfflineEventLogger* StubOfflinePageModel::GetLogger() { 79 OfflineEventLogger* StubOfflinePageModel::GetLogger() {
78 return nullptr; 80 return nullptr;
79 } 81 }
80 } // namespace offline_pages 82 } // 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