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

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

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
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 21 matching lines...) Expand all
32 void DeletePagesByOfflineId(const std::vector<int64_t>& offline_ids, 32 void DeletePagesByOfflineId(const std::vector<int64_t>& offline_ids,
33 const DeletePageCallback& callback) override; 33 const DeletePageCallback& callback) override;
34 void DeletePagesByURLPredicate(const UrlPredicate& predicate, 34 void DeletePagesByURLPredicate(const UrlPredicate& predicate,
35 const DeletePageCallback& callback) override; 35 const DeletePageCallback& callback) override;
36 void HasPages(const std::string& name_space, 36 void HasPages(const std::string& name_space,
37 const HasPagesCallback& callback) override; 37 const HasPagesCallback& callback) override;
38 void CheckPagesExistOffline( 38 void CheckPagesExistOffline(
39 const std::set<GURL>& urls, 39 const std::set<GURL>& urls,
40 const CheckPagesExistOfflineCallback& callback) override; 40 const CheckPagesExistOfflineCallback& callback) override;
41 void GetAllPages(const MultipleOfflinePageItemCallback& callback) override; 41 void GetAllPages(const MultipleOfflinePageItemCallback& callback) override;
42 void GetAllPagesWithExpired(
43 const MultipleOfflinePageItemCallback& callback) override;
42 void GetOfflineIdsForClientId( 44 void GetOfflineIdsForClientId(
43 const ClientId& client_id, 45 const ClientId& client_id,
44 const MultipleOfflineIdCallback& callback) override; 46 const MultipleOfflineIdCallback& callback) override;
45 const std::vector<int64_t> MaybeGetOfflineIdsForClientId( 47 const std::vector<int64_t> MaybeGetOfflineIdsForClientId(
46 const ClientId& client_id) const override; 48 const ClientId& client_id) const override;
47 void GetPageByOfflineId( 49 void GetPageByOfflineId(
48 int64_t offline_id, 50 int64_t offline_id,
49 const SingleOfflinePageItemCallback& callback) override; 51 const SingleOfflinePageItemCallback& callback) override;
50 const OfflinePageItem* MaybeGetPageByOfflineId( 52 const OfflinePageItem* MaybeGetPageByOfflineId(
51 int64_t offline_id) const override; 53 int64_t offline_id) const override;
(...skipping 18 matching lines...) Expand all
70 bool is_loaded() const override; 72 bool is_loaded() const override;
71 OfflineEventLogger* GetLogger() override; 73 OfflineEventLogger* GetLogger() override;
72 74
73 private: 75 private:
74 std::vector<int64_t> offline_ids_; 76 std::vector<int64_t> offline_ids_;
75 }; 77 };
76 78
77 } // namespace offline_pages 79 } // namespace offline_pages
78 80
79 #endif // COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_ 81 #endif // COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_
OLDNEW
« no previous file with comments | « components/offline_pages/offline_page_model_impl.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