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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
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_) {}
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.
28
20 BackgroundFetchJobInfo::~BackgroundFetchJobInfo() = default; 29 BackgroundFetchJobInfo::~BackgroundFetchJobInfo() = default;
21 30
22 } // namespace content 31 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698