Lines Matching defs:registration
41 const scoped_refptr<ServiceWorkerRegistration>& registration,
44 callback.Run(status, registration);
49 const scoped_refptr<ServiceWorkerRegistration>& registration,
52 RunSoon(from_here, base::Bind(callback, status, registration));
378 scoped_refptr<ServiceWorkerRegistration> registration =
380 if (registration.get()) {
381 CompleteFindNow(registration, SERVICE_WORKER_OK, callback);
422 ServiceWorkerRegistration* registration,
425 DCHECK(registration);
435 data.registration_id = registration->id();
436 data.scope = registration->pattern();
440 data.last_update_check = registration->last_update_check();
441 data.is_active = (version == registration->active_version());
459 registration->set_is_deleted(false);
463 ServiceWorkerRegistration* registration,
465 DCHECK(registration);
478 registration->id(),
479 registration->pattern().GetOrigin()),
486 ServiceWorkerRegistration* registration) {
487 DCHECK(registration);
498 registration->id(),
499 registration->pattern().GetOrigin(),
500 registration->last_update_check()));
530 // The registration should no longer be findable.
532 ServiceWorkerRegistration* registration =
534 if (registration)
535 registration->set_is_deleted(true);
624 ServiceWorkerRegistration* registration) {
625 DCHECK(installing_registrations_.find(registration->id()) ==
627 installing_registrations_[registration->id()] = registration;
631 ServiceWorkerRegistration* registration,
634 installing_registrations_.erase(registration->id());
653 ServiceWorkerRegistration* registration) {
654 DCHECK(uninstalling_registrations_.find(registration->id()) ==
656 uninstalling_registrations_[registration->id()] = registration;
660 ServiceWorkerRegistration* registration) {
661 uninstalling_registrations_.erase(registration->id());
846 // TODO(nhiroki): Find a registration in |installing_registrations_|.
861 scoped_refptr<ServiceWorkerRegistration> registration =
863 if (registration->is_deleted()) {
868 callback.Run(SERVICE_WORKER_OK, registration);
892 ServiceWorkerRegistration* registration =
894 if (registration) {
895 infos.push_back(registration->GetInfo());
987 scoped_refptr<ServiceWorkerRegistration> registration =
989 if (registration.get())
990 return registration;
992 registration = new ServiceWorkerRegistration(
994 registration->set_last_update_check(data.last_update_check);
997 registration->set_is_deleted(true);
1003 registration.get(), data.script, data.version_id, context_);
1010 registration->SetActiveVersion(version.get());
1012 registration->SetWaitingVersion(version.get());
1016 return registration;