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.h

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 #ifndef CONTENT_BROWSER_BACKGROUND_FETCH_FETCH_REQUEST_H_
6 #define CONTENT_BROWSER_BACKGROUND_FETCH_FETCH_REQUEST_H_
7
8 #include "content/common/content_export.h"
9 #include "url/gurl.h"
10 #include "url/origin.h"
11
12 namespace content {
13
14 // Simple class to encapsulate the components of a fetch request.
Peter Beverloo 2017/02/14 15:05:52 Please extend this in the future. "a fetch request
harkness 2017/02/15 13:48:44 Acknowledged.
15 class CONTENT_EXPORT FetchRequest {
16 public:
17 FetchRequest();
18 FetchRequest(const url::Origin& origin,
19 const GURL& url,
20 int64_t sw_registration_id,
21 const std::string& tag);
22 FetchRequest(const FetchRequest& request);
23 ~FetchRequest();
24
25 const std::string& guid() const { return guid_; }
26 const url::Origin& origin() const { return origin_; }
27 const GURL& url() const { return url_; }
28 int64_t sw_registration_id() const { return sw_registration_id_; }
29 const std::string& tag() const { return tag_; }
30
31 private:
32 std::string guid_;
33 url::Origin origin_;
34 GURL url_;
35 int64_t sw_registration_id_;
36 std::string tag_;
37 };
38
39 } // namespace content
40
41 #endif // CONTENT_BROWSER_BACKGROUND_FETCH_FETCH_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698