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

Unified Diff: content/browser/background_fetch/background_fetch_request_info.cc

Issue 2778793002: Start aligning BackgroundFetchRequestInfo with the passed in request object. (Closed)
Patch Set: Rebase Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/background_fetch/background_fetch_request_info.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/background_fetch/background_fetch_request_info.cc
diff --git a/content/browser/background_fetch/background_fetch_request_info.cc b/content/browser/background_fetch/background_fetch_request_info.cc
index 45f63c8a4967fcf681c8fc2174b1e2185f2e5239..14f90496915a52f37ca7c7c7acabf4f5fe20c70f 100644
--- a/content/browser/background_fetch/background_fetch_request_info.cc
+++ b/content/browser/background_fetch/background_fetch_request_info.cc
@@ -13,15 +13,14 @@ namespace content {
BackgroundFetchRequestInfo::BackgroundFetchRequestInfo() = default;
-BackgroundFetchRequestInfo::BackgroundFetchRequestInfo(const GURL& url,
- const std::string& tag)
- : guid_(base::GenerateGUID()), url_(url), tag_(tag) {}
+BackgroundFetchRequestInfo::BackgroundFetchRequestInfo(
+ const ServiceWorkerFetchRequest& fetch_request)
+ : fetch_request_(fetch_request), guid_(base::GenerateGUID()) {}
BackgroundFetchRequestInfo::BackgroundFetchRequestInfo(
const BackgroundFetchRequestInfo& request)
- : guid_(request.guid_),
- url_(request.url_),
- tag_(request.tag_),
+ : fetch_request_(request.fetch_request_),
+ guid_(request.guid_),
download_guid_(request.download_guid_),
state_(request.state_),
interrupt_reason_(request.interrupt_reason_),
@@ -34,4 +33,8 @@ bool BackgroundFetchRequestInfo::IsComplete() const {
state_ == DownloadItem::DownloadState::CANCELLED);
}
+const GURL& BackgroundFetchRequestInfo::GetURL() const {
+ return fetch_request_.url;
+}
+
} // namespace content
« no previous file with comments | « content/browser/background_fetch/background_fetch_request_info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698