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

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

Issue 2275833002: [Offline Pages] Don't remove user-requested pages when deleting cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments. 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() {}
11 11
12 void StubOfflinePageModel::AddObserver(Observer* observer) {} 12 void StubOfflinePageModel::AddObserver(Observer* observer) {}
13 void StubOfflinePageModel::RemoveObserver(Observer* observer) {} 13 void StubOfflinePageModel::RemoveObserver(Observer* observer) {}
14 void StubOfflinePageModel::SavePage( 14 void StubOfflinePageModel::SavePage(
15 const GURL& url, 15 const GURL& url,
16 const ClientId& client_id, 16 const ClientId& client_id,
17 int64_t proposed_offline_id, 17 int64_t proposed_offline_id,
18 std::unique_ptr<OfflinePageArchiver> archiver, 18 std::unique_ptr<OfflinePageArchiver> archiver,
19 const SavePageCallback& callback) {} 19 const SavePageCallback& callback) {}
20 void StubOfflinePageModel::MarkPageAccessed(int64_t offline_id) {} 20 void StubOfflinePageModel::MarkPageAccessed(int64_t offline_id) {}
21 void StubOfflinePageModel::ClearAll(const base::Closure& callback) {} 21 void StubOfflinePageModel::ClearAll(const base::Closure& callback) {}
22 void StubOfflinePageModel::DeletePagesByOfflineId( 22 void StubOfflinePageModel::DeletePagesByOfflineId(
23 const std::vector<int64_t>& offline_ids, 23 const std::vector<int64_t>& offline_ids,
24 const DeletePageCallback& callback) {} 24 const DeletePageCallback& callback) {}
25 void StubOfflinePageModel::DeletePagesByURLPredicate( 25 void StubOfflinePageModel::DeleteCachedPagesByURLPredicate(
26 const UrlPredicate& predicate, 26 const UrlPredicate& predicate,
27 const DeletePageCallback& callback) {} 27 const DeletePageCallback& callback) {}
28 void StubOfflinePageModel::HasPages(const std::string& name_space, 28 void StubOfflinePageModel::HasPages(const std::string& name_space,
29 const HasPagesCallback& callback) {} 29 const HasPagesCallback& callback) {}
30 void StubOfflinePageModel::CheckPagesExistOffline( 30 void StubOfflinePageModel::CheckPagesExistOffline(
31 const std::set<GURL>& urls, 31 const std::set<GURL>& urls,
32 const CheckPagesExistOfflineCallback& callback) {} 32 const CheckPagesExistOfflineCallback& callback) {}
33 void StubOfflinePageModel::GetAllPages( 33 void StubOfflinePageModel::GetAllPages(
34 const MultipleOfflinePageItemCallback& callback) {} 34 const MultipleOfflinePageItemCallback& callback) {}
35 void StubOfflinePageModel::GetAllPagesWithExpired( 35 void StubOfflinePageModel::GetAllPagesWithExpired(
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 ClientPolicyController* StubOfflinePageModel::GetPolicyController() { 71 ClientPolicyController* StubOfflinePageModel::GetPolicyController() {
72 return nullptr; 72 return nullptr;
73 } 73 }
74 bool StubOfflinePageModel::is_loaded() const { 74 bool StubOfflinePageModel::is_loaded() const {
75 return true; 75 return true;
76 } 76 }
77 OfflineEventLogger* StubOfflinePageModel::GetLogger() { 77 OfflineEventLogger* StubOfflinePageModel::GetLogger() {
78 return nullptr; 78 return nullptr;
79 } 79 }
80 } // namespace offline_pages 80 } // 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