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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/background_fetch/fetch_request.cc
diff --git a/content/browser/background_fetch/fetch_request.cc b/content/browser/background_fetch/fetch_request.cc
new file mode 100644
index 0000000000000000000000000000000000000000..455c4d464d28af6b98ca6dd0d8c1b8f6c87f4078
--- /dev/null
+++ b/content/browser/background_fetch/fetch_request.cc
@@ -0,0 +1,35 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/browser/background_fetch/fetch_request.h"
+
+#include <string>
+
+#include "base/guid.h"
+#include "content/public/browser/download_item.h"
+
+namespace content {
+
+FetchRequest::FetchRequest() = default;
+
+FetchRequest::FetchRequest(const url::Origin& origin,
+ const GURL& url,
+ int64_t service_worker_registration_id,
+ const std::string& tag)
+ : guid_(base::GenerateGUID()),
+ origin_(origin),
+ url_(url),
+ service_worker_registration_id_(service_worker_registration_id),
+ tag_(tag) {}
+
+FetchRequest::FetchRequest(const FetchRequest& request)
+ : guid_(request.guid_),
+ origin_(request.origin_),
+ url_(request.url_),
+ service_worker_registration_id_(request.service_worker_registration_id()),
+ tag_(request.tag_) {}
+
+FetchRequest::~FetchRequest() = default;
+
+} // namespace content
« 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