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

Unified Diff: components/offline_pages/offline_page_model.cc

Issue 2484223005: Store original request URL in offline page metadata table (Closed)
Patch Set: Address feedback 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.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/offline_pages/offline_page_model.cc
diff --git a/components/offline_pages/offline_page_model.cc b/components/offline_pages/offline_page_model.cc
index cd0a93705f20b8ed1807c2f807e2a1641a37f4f7..24b4dd097f2cf8d415e88bd94d8177629ab3788f 100644
--- a/components/offline_pages/offline_page_model.cc
+++ b/components/offline_pages/offline_page_model.cc
@@ -8,6 +8,17 @@
namespace offline_pages {
+OfflinePageModel::SavePageParams::SavePageParams()
+ : proposed_offline_id(OfflinePageModel::kInvalidOfflineId) {
+}
+
+OfflinePageModel::SavePageParams::SavePageParams(const SavePageParams& other) {
+ url = other.url;
+ client_id = other.client_id;
+ proposed_offline_id = other.proposed_offline_id;
+ original_url = other.original_url;
+}
+
// static
bool OfflinePageModel::CanSaveURL(const GURL& url) {
return url.is_valid() && url.SchemeIsHTTPOrHTTPS();
« no previous file with comments | « components/offline_pages/offline_page_model.h ('k') | components/offline_pages/offline_page_model_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698