Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "content/browser/background_fetch/fetch_request.h" | |
| 6 | |
| 7 #include "base/guid.h" | |
| 8 #include "content/public/browser/download_item.h" | |
| 9 | |
| 10 namespace content { | |
| 11 | |
| 12 FetchRequest::FetchRequest() | |
| 13 : origin_(), url_(), tag_(), download_item_(nullptr) {} | |
|
Peter Beverloo
2017/02/13 18:35:06
nit: {} -> default, everywhere else in this file t
Peter Beverloo
2017/02/13 18:35:06
nit: members initialize themselves. you only need
harkness
2017/02/14 13:52:46
It seems that our compiler doesn't like = default
harkness
2017/02/14 13:52:46
Done.
| |
| 14 | |
| 15 FetchRequest::FetchRequest(const url::Origin& origin, | |
| 16 const url::Origin& url, | |
| 17 const std::string& tag, | |
| 18 DownloadItem* download_item) | |
| 19 : guid_(base::GenerateGUID()), | |
| 20 origin_(origin), | |
| 21 url_(url), | |
| 22 tag_(tag), | |
| 23 download_item_(download_item) {} | |
| 24 | |
| 25 FetchRequest::FetchRequest(const FetchRequest& request) | |
| 26 : guid_(request.guid_), | |
| 27 origin_(request.origin_), | |
| 28 url_(request.url_), | |
| 29 tag_(request.tag_), | |
| 30 download_item_(request.download_item_) {} | |
| 31 | |
| 32 FetchRequest::~FetchRequest() {} | |
| 33 | |
| 34 } // namespace content | |
| OLD | NEW |