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

Unified Diff: content/browser/service_worker/service_worker_registration_handle.h

Issue 517493002: ServiceWorker: Update the install sequence as per the latest spec (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment fix (+rebase) Created 6 years, 4 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/browser/service_worker/service_worker_registration_handle.h
diff --git a/content/browser/service_worker/service_worker_registration_handle.h b/content/browser/service_worker/service_worker_registration_handle.h
index c1a3bdd5c8ad0ce98be2954be7f7b1ea6e7b6e3a..d6d7e05fa81d7e941560106be8f0cb5fd7b44b9f 100644
--- a/content/browser/service_worker/service_worker_registration_handle.h
+++ b/content/browser/service_worker/service_worker_registration_handle.h
@@ -34,6 +34,8 @@ class ServiceWorkerRegistrationHandle
virtual ~ServiceWorkerRegistrationHandle();
ServiceWorkerRegistrationObjectInfo GetObjectInfo();
+ ServiceWorkerObjectInfo CreateServiceWorkerHandleAndPass(
+ ServiceWorkerVersion* version);
bool HasNoRefCount() const { return ref_count_ <= 0; }
void IncrementRefCount();
@@ -52,6 +54,8 @@ class ServiceWorkerRegistrationHandle
const ServiceWorkerRegistrationInfo& info) OVERRIDE;
virtual void OnRegistrationFailed(
ServiceWorkerRegistration* registration) OVERRIDE;
+ virtual void OnUpdateFound(
+ ServiceWorkerRegistration* registration) OVERRIDE;
// Sets the corresponding version field to the given version or if the given
// version is NULL, clears the field.
@@ -63,9 +67,6 @@ class ServiceWorkerRegistrationHandle
// Clears all version fields.
void ClearVersionAttributes();
- ServiceWorkerObjectInfo CreateServiceWorkerHandleAndPass(
- ServiceWorkerVersion* version);
-
base::WeakPtr<ServiceWorkerContextCore> context_;
ServiceWorkerDispatcherHost* dispatcher_host_;
const int provider_id_;

Powered by Google App Engine
This is Rietveld 408576698