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

Side by Side Diff: content/browser/background_fetch/background_fetch_request_info.cc

Issue 2727253002: Added DownloadItem::Observer to JobController. (Closed)
Patch Set: Added TODO 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_request_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_request_info.h" 5 #include "content/browser/background_fetch/background_fetch_request_info.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/guid.h" 9 #include "base/guid.h"
10 #include "content/public/browser/download_item.h" 10 #include "content/public/browser/download_item.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 BackgroundFetchRequestInfo::BackgroundFetchRequestInfo() = default; 14 BackgroundFetchRequestInfo::BackgroundFetchRequestInfo() = default;
15 15
16 BackgroundFetchRequestInfo::BackgroundFetchRequestInfo(const GURL& url, 16 BackgroundFetchRequestInfo::BackgroundFetchRequestInfo(const GURL& url,
17 const std::string& tag) 17 const std::string& tag)
18 : guid_(base::GenerateGUID()), url_(url), tag_(tag) {} 18 : guid_(base::GenerateGUID()), url_(url), tag_(tag) {}
19 19
20 BackgroundFetchRequestInfo::BackgroundFetchRequestInfo( 20 BackgroundFetchRequestInfo::BackgroundFetchRequestInfo(
21 const BackgroundFetchRequestInfo& request) 21 const BackgroundFetchRequestInfo& request)
22 : guid_(request.guid_), url_(request.url_), tag_(request.tag_) {} 22 : guid_(request.guid_),
23 url_(request.url_),
24 tag_(request.tag_),
25 complete_(request.complete_),
26 download_guid_(request.download_guid_) {}
23 27
24 BackgroundFetchRequestInfo::~BackgroundFetchRequestInfo() = default; 28 BackgroundFetchRequestInfo::~BackgroundFetchRequestInfo() = default;
25 29
26 } // namespace content 30 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/background_fetch/background_fetch_request_info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698