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

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: ACTUALLY fix the compile error 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
« no previous file with comments | « content/browser/background_fetch/background_fetch_job_info.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_),
28 request_guids_(other.request_guids_) {}
29
20 BackgroundFetchJobInfo::~BackgroundFetchJobInfo() = default; 30 BackgroundFetchJobInfo::~BackgroundFetchJobInfo() = default;
21 31
22 } // namespace content 32 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/background_fetch/background_fetch_job_info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698