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 |