| 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 56437d022de54b9d57ce6a5baab439735a415114..76f0d6052dbcc404bb63b91d47bcd566f0c66b8a 100644
|
| --- a/content/common/service_worker/service_worker_types.cc
|
| +++ b/content/common/service_worker/service_worker_types.cc
|
| @@ -92,6 +92,11 @@ ServiceWorkerObjectInfo::ServiceWorkerObjectInfo()
|
| state(blink::WebServiceWorkerStateUnknown),
|
| version_id(kInvalidServiceWorkerVersionId) {}
|
|
|
| +bool ServiceWorkerObjectInfo::IsValid() const {
|
| + return handle_id != kInvalidServiceWorkerHandleId &&
|
| + version_id != kInvalidServiceWorkerVersionId;
|
| +}
|
| +
|
| ServiceWorkerRegistrationObjectInfo::ServiceWorkerRegistrationObjectInfo()
|
| : handle_id(kInvalidServiceWorkerRegistrationHandleId),
|
| registration_id(kInvalidServiceWorkerRegistrationId) {
|
| @@ -102,4 +107,14 @@ ServiceWorkerClientQueryOptions::ServiceWorkerClientQueryOptions()
|
| include_uncontrolled(false) {
|
| }
|
|
|
| +ExtendableMessageEventSource::ExtendableMessageEventSource() {}
|
| +
|
| +ExtendableMessageEventSource::ExtendableMessageEventSource(
|
| + const ServiceWorkerClientInfo& client_info)
|
| + : client_info(client_info) {}
|
| +
|
| +ExtendableMessageEventSource::ExtendableMessageEventSource(
|
| + const ServiceWorkerObjectInfo& service_worker_info)
|
| + : service_worker_info(service_worker_info) {}
|
| +
|
| } // namespace content
|
|
|