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

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

Issue 2724783002: Make the BackgroundFetchJobController a per-job object (Closed)
Patch Set: Created 3 years, 10 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
Index: content/browser/background_fetch/background_fetch_job_info.cc
diff --git a/content/browser/background_fetch/background_fetch_job_info.cc b/content/browser/background_fetch/background_fetch_job_info.cc
index 71c33ab5158799a1a6321243b29ceacf6539c85a..36eea0801fc78a7d7b6ad720facb90bd4a7b5519 100644
--- a/content/browser/background_fetch/background_fetch_job_info.cc
+++ b/content/browser/background_fetch/background_fetch_job_info.cc
@@ -17,6 +17,15 @@ BackgroundFetchJobInfo::BackgroundFetchJobInfo(
origin_(origin),
service_worker_registration_id_(service_worker_registration_id) {}
+BackgroundFetchJobInfo::BackgroundFetchJobInfo() = default;
+
+BackgroundFetchJobInfo::BackgroundFetchJobInfo(
+ const BackgroundFetchJobInfo& other)
+ : guid_(other.guid_),
+ tag_(other.tag_),
+ origin_(other.origin_),
+ service_worker_registration_id_(other.service_worker_registration_id_) {}
Peter Beverloo 2017/03/08 14:27:04 request_guids are missing.
harkness 2017/03/09 13:33:25 Done, and yeah, definitely time for unique_ptrs.
+
BackgroundFetchJobInfo::~BackgroundFetchJobInfo() = default;
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698