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

Unified Diff: content/common/service_worker/service_worker_types.cc

Issue 2968123002: Introduce ServiceWorkerRegistrationOptions struct for service worker options (Closed)
Patch Set: Created 3 years, 5 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/common/service_worker/service_worker_types.cc
diff --git a/content/common/service_worker/service_worker_types.cc b/content/common/service_worker/service_worker_types.cc
index 4ebe7bdbda619b552247e55d752244e7bdfa4de4..4fe7eb588f3b63e6387a0fe3a0fee251e2dbc965 100644
--- a/content/common/service_worker/service_worker_types.cc
+++ b/content/common/service_worker/service_worker_types.cc
@@ -132,6 +132,12 @@ bool ServiceWorkerObjectInfo::IsValid() const {
version_id != kInvalidServiceWorkerVersionId;
}
+ServiceWorkerRegistrationOptions::ServiceWorkerRegistrationOptions() {}
nhiroki 2017/07/07 02:02:09 = default; ?
yuryu 2017/07/10 03:38:10 Done.
+
+ServiceWorkerRegistrationOptions::ServiceWorkerRegistrationOptions(
+ const GURL& scope)
+ : scope(scope) {}
+
ServiceWorkerRegistrationObjectInfo::ServiceWorkerRegistrationObjectInfo()
: handle_id(kInvalidServiceWorkerRegistrationHandleId),
registration_id(kInvalidServiceWorkerRegistrationId) {

Powered by Google App Engine
This is Rietveld 408576698