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

Unified Diff: components/offline_pages/offline_page_model_impl.h

Issue 2503853004: Support getting offline pages also by original URL (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: components/offline_pages/offline_page_model_impl.h
diff --git a/components/offline_pages/offline_page_model_impl.h b/components/offline_pages/offline_page_model_impl.h
index d5a4a7d954915dbfa544a3e5d86f08b9f2b0d5b1..a9464ce21afacb8fba0c6701ea922c70cdc9fa5c 100644
--- a/components/offline_pages/offline_page_model_impl.h
+++ b/components/offline_pages/offline_page_model_impl.h
@@ -98,8 +98,9 @@ class OfflinePageModelImpl : public OfflinePageModel, public KeyedService {
void GetPageByOfflineId(
int64_t offline_id,
const SingleOfflinePageItemCallback& callback) override;
- void GetPagesByOnlineURL(
- const GURL& online_url,
+ void GetPagesByURL(
+ const GURL& url,
+ bool search_by_final_url_only,
const MultipleOfflinePageItemCallback& callback) override;
void ExpirePages(const std::vector<int64_t>& offline_ids,
const base::Time& expiration_time,
@@ -140,8 +141,9 @@ class OfflinePageModelImpl : public OfflinePageModel, public KeyedService {
const SingleOfflinePageItemCallback& callback) const;
const std::vector<int64_t> MaybeGetOfflineIdsForClientId(
const ClientId& client_id) const;
- void GetPagesByOnlineURLWhenLoadDone(
- const GURL& online_url,
+ void GetPagesByURLWhenLoadDone(
+ const GURL& url,
+ bool search_by_final_url_only,
const MultipleOfflinePageItemCallback& callback) const;
void MarkPageAccessedWhenLoadDone(int64_t offline_id);

Powered by Google App Engine
This is Rietveld 408576698