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

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

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, 4 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 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 #ifndef COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_ 5 #ifndef COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_
6 #define COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_ 6 #define COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 14 matching lines...) Expand all
25 void RemoveObserver(Observer* observer) override; 25 void RemoveObserver(Observer* observer) override;
26 void SavePage(const GURL& url, 26 void SavePage(const GURL& url,
27 const ClientId& client_id, 27 const ClientId& client_id,
28 int64_t proposed_offline_id, 28 int64_t proposed_offline_id,
29 std::unique_ptr<OfflinePageArchiver> archiver, 29 std::unique_ptr<OfflinePageArchiver> archiver,
30 const SavePageCallback& callback) override; 30 const SavePageCallback& callback) override;
31 void MarkPageAccessed(int64_t offline_id) override; 31 void MarkPageAccessed(int64_t offline_id) override;
32 void ClearAll(const base::Closure& callback) override; 32 void ClearAll(const base::Closure& callback) override;
33 void DeletePagesByOfflineId(const std::vector<int64_t>& offline_ids, 33 void DeletePagesByOfflineId(const std::vector<int64_t>& offline_ids,
34 const DeletePageCallback& callback) override; 34 const DeletePageCallback& callback) override;
35 void DeletePagesByURLPredicate(const UrlPredicate& predicate, 35 void DeleteCachedPagesByURLPredicate(
36 const DeletePageCallback& callback) override; 36 const UrlPredicate& predicate,
37 const DeletePageCallback& callback) override;
37 void HasPages(const std::string& name_space, 38 void HasPages(const std::string& name_space,
38 const HasPagesCallback& callback) override; 39 const HasPagesCallback& callback) override;
39 void CheckPagesExistOffline( 40 void CheckPagesExistOffline(
40 const std::set<GURL>& urls, 41 const std::set<GURL>& urls,
41 const CheckPagesExistOfflineCallback& callback) override; 42 const CheckPagesExistOfflineCallback& callback) override;
42 void GetAllPages(const MultipleOfflinePageItemCallback& callback) override; 43 void GetAllPages(const MultipleOfflinePageItemCallback& callback) override;
43 void GetAllPagesWithExpired( 44 void GetAllPagesWithExpired(
44 const MultipleOfflinePageItemCallback& callback) override; 45 const MultipleOfflinePageItemCallback& callback) override;
45 void GetOfflineIdsForClientId( 46 void GetOfflineIdsForClientId(
46 const ClientId& client_id, 47 const ClientId& client_id,
(...skipping 23 matching lines...) Expand all
70 bool is_loaded() const override; 71 bool is_loaded() const override;
71 OfflineEventLogger* GetLogger() override; 72 OfflineEventLogger* GetLogger() override;
72 73
73 private: 74 private:
74 std::vector<int64_t> offline_ids_; 75 std::vector<int64_t> offline_ids_;
75 }; 76 };
76 77
77 } // namespace offline_pages 78 } // namespace offline_pages
78 79
79 #endif // COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_ 80 #endif // COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_
OLDNEW
« no previous file with comments | « components/offline_pages/offline_page_model_impl_unittest.cc ('k') | components/offline_pages/stub_offline_page_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698