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

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

Issue 477593007: ServiceWorker: Make '.ready' return a promise to be resolved with ServiceWorkerRegistration (2/3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 3 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_provider_host.h
diff --git a/content/browser/service_worker/service_worker_provider_host.h b/content/browser/service_worker/service_worker_provider_host.h
index 6a6134a1472ba111ccd064d7da378ebe2ecdddf6..85b9e7ff7aec706bda0e46ade63fb608c89201a7 100644
--- a/content/browser/service_worker/service_worker_provider_host.h
+++ b/content/browser/service_worker/service_worker_provider_host.h
@@ -76,6 +76,10 @@ class CONTENT_EXPORT ServiceWorkerProviderHost
return running_hosted_version_.get();
}
+ ServiceWorkerRegistration* associated_registration() const {
+ return associated_registration_.get();
+ }
+
void SetDocumentUrl(const GURL& url);
const GURL& document_url() const { return document_url_; }

Powered by Google App Engine
This is Rietveld 408576698