| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/background_fetch/background_fetch_job_info.h" | 5 #include "content/browser/background_fetch/background_fetch_job_info.h" |
| 6 | 6 |
| 7 #include "base/guid.h" | 7 #include "base/guid.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| 11 BackgroundFetchJobInfo::BackgroundFetchJobInfo( | 11 BackgroundFetchJobInfo::BackgroundFetchJobInfo( |
| 12 const std::string& tag, | 12 const std::string& tag, |
| 13 const url::Origin& origin, | 13 const url::Origin& origin, |
| 14 int64_t service_worker_registration_id) | 14 int64_t service_worker_registration_id) |
| 15 : guid_(base::GenerateGUID()), | 15 : guid_(base::GenerateGUID()), |
| 16 tag_(tag), | 16 tag_(tag), |
| 17 origin_(origin), | 17 origin_(origin), |
| 18 service_worker_registration_id_(service_worker_registration_id) {} | 18 service_worker_registration_id_(service_worker_registration_id) {} |
| 19 | 19 |
| 20 BackgroundFetchJobInfo::BackgroundFetchJobInfo() = default; |
| 21 |
| 22 BackgroundFetchJobInfo::BackgroundFetchJobInfo( |
| 23 const BackgroundFetchJobInfo& other) |
| 24 : guid_(other.guid_), |
| 25 tag_(other.tag_), |
| 26 origin_(other.origin_), |
| 27 service_worker_registration_id_(other.service_worker_registration_id_), |
| 28 request_guids_(other.request_guids_) {} |
| 29 |
| 20 BackgroundFetchJobInfo::~BackgroundFetchJobInfo() = default; | 30 BackgroundFetchJobInfo::~BackgroundFetchJobInfo() = default; |
| 21 | 31 |
| 22 } // namespace content | 32 } // namespace content |
| OLD | NEW |