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; |
}; |