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

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

Issue 2336973005: [Offline Pages] Removes the unused "HasPages" function. (Closed)
Patch Set: 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_OFFLINE_PAGE_MODEL_H_ 5 #ifndef COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_
6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 // Deletes pages based on |offline_ids|. 102 // Deletes pages based on |offline_ids|.
103 virtual void DeletePagesByOfflineId(const std::vector<int64_t>& offline_ids, 103 virtual void DeletePagesByOfflineId(const std::vector<int64_t>& offline_ids,
104 const DeletePageCallback& callback) = 0; 104 const DeletePageCallback& callback) = 0;
105 105
106 // Deletes cached offline pages matching the URL predicate. 106 // Deletes cached offline pages matching the URL predicate.
107 virtual void DeleteCachedPagesByURLPredicate( 107 virtual void DeleteCachedPagesByURLPredicate(
108 const UrlPredicate& predicate, 108 const UrlPredicate& predicate,
109 const DeletePageCallback& callback) = 0; 109 const DeletePageCallback& callback) = 0;
110 110
111 // Returns true via callback if there are offline pages in the given
112 // |name_space|.
113 virtual void HasPages(const std::string& name_space,
114 const HasPagesCallback& callback) = 0;
115
116 // Returns via callback all GURLs in |urls| that are equal to the online URL 111 // Returns via callback all GURLs in |urls| that are equal to the online URL
117 // of any offline page. 112 // of any offline page.
118 virtual void CheckPagesExistOffline( 113 virtual void CheckPagesExistOffline(
119 const std::set<GURL>& urls, 114 const std::set<GURL>& urls,
120 const CheckPagesExistOfflineCallback& callback) = 0; 115 const CheckPagesExistOfflineCallback& callback) = 0;
121 116
122 // Gets all offline pages. 117 // Gets all offline pages.
123 virtual void GetAllPages(const MultipleOfflinePageItemCallback& callback) = 0; 118 virtual void GetAllPages(const MultipleOfflinePageItemCallback& callback) = 0;
124 119
125 // Gets all offline pages including expired ones. 120 // Gets all offline pages including expired ones.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // TODO(dougarnett): Remove this and its uses. 187 // TODO(dougarnett): Remove this and its uses.
193 virtual bool is_loaded() const = 0; 188 virtual bool is_loaded() const = 0;
194 189
195 // Returns the logger. Ownership is retained by the model. 190 // Returns the logger. Ownership is retained by the model.
196 virtual OfflineEventLogger* GetLogger() = 0; 191 virtual OfflineEventLogger* GetLogger() = 0;
197 }; 192 };
198 193
199 } // namespace offline_pages 194 } // namespace offline_pages
200 195
201 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ 196 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/offline_pages/offline_page_bridge.cc ('k') | components/offline_pages/offline_page_model_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698