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 <string> |
| 8 |
| 9 #include "base/guid.h" |
| 10 #include "content/public/browser/download_item.h" |
| 11 |
| 12 namespace content { |
| 13 |
| 14 FetchRequest::FetchRequest() = default; |
| 15 |
| 16 FetchRequest::FetchRequest(const url::Origin& origin, |
| 17 const GURL& url, |
| 18 int64_t service_worker_registration_id, |
| 19 const std::string& tag) |
| 20 : guid_(base::GenerateGUID()), |
| 21 origin_(origin), |
| 22 url_(url), |
| 23 service_worker_registration_id_(service_worker_registration_id), |
| 24 tag_(tag) {} |
| 25 |
| 26 FetchRequest::FetchRequest(const FetchRequest& request) |
| 27 : guid_(request.guid_), |
| 28 origin_(request.origin_), |
| 29 url_(request.url_), |
| 30 service_worker_registration_id_(request.service_worker_registration_id()), |
| 31 tag_(request.tag_) {} |
| 32 |
| 33 FetchRequest::~FetchRequest() = default; |
| 34 |
| 35 } // namespace content |
OLD | NEW |