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

Unified Diff: components/offline_pages/offline_page_model_impl.h

Issue 2503853004: Support getting offline pages also by original URL (Closed)
Patch Set: Make NTP redirect work per comment 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
« no previous file with comments | « components/offline_pages/offline_page_model.h ('k') | components/offline_pages/offline_page_model_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..99e88d61285a9d372ae7136e1de2971e411debdb 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,
+ URLSearchMode url_search_mode,
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,
+ URLSearchMode url_search_mode,
const MultipleOfflinePageItemCallback& callback) const;
void MarkPageAccessedWhenLoadDone(int64_t offline_id);
« no previous file with comments | « components/offline_pages/offline_page_model.h ('k') | components/offline_pages/offline_page_model_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698