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

Unified Diff: content/browser/background_fetch/background_fetch_job_info.cc

Issue 2708943002: Create the BackgroundFetchBatchManager and initiate a download. (Closed)
Patch Set: fixed nits 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
Index: content/browser/background_fetch/background_fetch_job_info.cc
diff --git a/content/browser/background_fetch/background_fetch_job_info.cc b/content/browser/background_fetch/background_fetch_job_info.cc
new file mode 100644
index 0000000000000000000000000000000000000000..71c33ab5158799a1a6321243b29ceacf6539c85a
--- /dev/null
+++ b/content/browser/background_fetch/background_fetch_job_info.cc
@@ -0,0 +1,22 @@
+// 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/background_fetch_job_info.h"
+
+#include "base/guid.h"
+
+namespace content {
+
+BackgroundFetchJobInfo::BackgroundFetchJobInfo(
+ const std::string& tag,
+ const url::Origin& origin,
+ int64_t service_worker_registration_id)
+ : guid_(base::GenerateGUID()),
+ tag_(tag),
+ origin_(origin),
+ service_worker_registration_id_(service_worker_registration_id) {}
+
+BackgroundFetchJobInfo::~BackgroundFetchJobInfo() = default;
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698