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

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

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.h
diff --git a/content/common/service_worker/service_worker_types.h b/content/common/service_worker/service_worker_types.h
index a3f10c418d8177e3322f1f98eade3478c753b917..a3bf48d62b59633d2c4692bc33b659692bd03276 100644
--- a/content/common/service_worker/service_worker_types.h
+++ b/content/common/service_worker/service_worker_types.h
@@ -221,10 +221,17 @@ struct CONTENT_EXPORT ServiceWorkerObjectInfo {
int64_t version_id;
};
nhiroki 2017/07/07 02:02:09 Can you add a struct-level comment like this? //
yuryu 2017/07/10 03:38:11 Done.
+struct CONTENT_EXPORT ServiceWorkerRegistrationOptions {
+ ServiceWorkerRegistrationOptions();
nhiroki 2017/07/07 02:02:09 Is this ctor necessary? (I guess this is required
yuryu 2017/07/10 03:38:11 Default ctor is necessary because RegistrationOpti
+ // Initialize |scope| with the specified value and the rest with defaults
nhiroki 2017/07/07 02:02:09 s/Initialize/Initializes/ See: https://google.git
falken 2017/07/07 03:25:32 IMO this comment is unnecessary... it's known that
yuryu 2017/07/10 03:38:10 Removing the comment entirely.
+ explicit ServiceWorkerRegistrationOptions(const GURL& scope);
+ GURL scope;
kinuko 2017/07/07 02:59:31 nit: maybe add a lightweight TODO comment to add/s
yuryu 2017/07/10 03:38:10 Done.
+};
+
struct CONTENT_EXPORT ServiceWorkerRegistrationObjectInfo {
ServiceWorkerRegistrationObjectInfo();
int handle_id;
- GURL scope;
+ ServiceWorkerRegistrationOptions options;
int64_t registration_id;
};

Powered by Google App Engine
This is Rietveld 408576698