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

Side by Side Diff: components/offline_pages/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 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 // Returns via callback all GURLs in |urls| that are equal to the online URL 113 // Returns via callback all GURLs in |urls| that are equal to the online URL
114 // of any offline page. 114 // of any offline page.
115 virtual void CheckPagesExistOffline( 115 virtual void CheckPagesExistOffline(
116 const std::set<GURL>& urls, 116 const std::set<GURL>& urls,
117 const CheckPagesExistOfflineCallback& callback) = 0; 117 const CheckPagesExistOfflineCallback& callback) = 0;
118 118
119 // Gets all offline pages. 119 // Gets all offline pages.
120 virtual void GetAllPages(const MultipleOfflinePageItemCallback& callback) = 0; 120 virtual void GetAllPages(const MultipleOfflinePageItemCallback& callback) = 0;
121 121
122 // Gets all offline pages including expired ones.
123 virtual void GetAllPagesWithExpired(
124 const MultipleOfflinePageItemCallback& callback) = 0;
125
122 // Gets all offline ids where the offline page has the matching client id. 126 // Gets all offline ids where the offline page has the matching client id.
123 virtual void GetOfflineIdsForClientId( 127 virtual void GetOfflineIdsForClientId(
124 const ClientId& client_id, 128 const ClientId& client_id,
125 const MultipleOfflineIdCallback& callback) = 0; 129 const MultipleOfflineIdCallback& callback) = 0;
126 130
127 // Gets all offline ids where the offline page has the matching client id. 131 // Gets all offline ids where the offline page has the matching client id.
128 // Requires that the model is loaded. May not return matching IDs depending 132 // Requires that the model is loaded. May not return matching IDs depending
129 // on the internal state of the model. 133 // on the internal state of the model.
130 // 134 //
131 // This function is deprecated. Use |GetOfflineIdsForClientId| instead. 135 // This function is deprecated. Use |GetOfflineIdsForClientId| instead.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 // TODO(dougarnett): Remove this and its uses. 199 // TODO(dougarnett): Remove this and its uses.
196 virtual bool is_loaded() const = 0; 200 virtual bool is_loaded() const = 0;
197 201
198 // Returns the logger. Ownership is retained by the model. 202 // Returns the logger. Ownership is retained by the model.
199 virtual OfflineEventLogger* GetLogger() = 0; 203 virtual OfflineEventLogger* GetLogger() = 0;
200 }; 204 };
201 205
202 } // namespace offline_pages 206 } // namespace offline_pages
203 207
204 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ 208 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/offline_internals_ui.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