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

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

Issue 2678273003: Initial framework setup and skeleton for BackgroundFetchContext (Closed)
Patch Set: Remove observations for service worker context wrapper 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
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;
Peter Beverloo 2017/02/14 15:05:52 You need to initialize sw_registration_id_ here an
harkness 2017/02/15 13:48:44 I gave it a default value.
15
16 FetchRequest::FetchRequest(const url::Origin& origin,
17 const GURL& url,
18 int64_t sw_registration_id,
Peter Beverloo 2017/02/14 15:05:52 note: try to avoid acronyms (sw -> service_worker_
harkness 2017/02/15 13:48:44 Done.
19 const std::string& tag)
20 : guid_(base::GenerateGUID()),
21 origin_(origin),
22 url_(url),
23 sw_registration_id_(sw_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 tag_(request.tag_) {}
31
32 FetchRequest::~FetchRequest() = default;
33
34 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698