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

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

Issue 2678273003: Initial framework setup and skeleton for BackgroundFetchContext (Closed)
Patch Set: Removed unused browser_context_ stored member. Created 3 years, 10 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/fetch_request.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « content/browser/background_fetch/fetch_request.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698