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

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: remake more 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..186621ee31d11612176ba7fb44d5c2a9cc463236 100644
--- a/content/browser/service_worker/service_worker_provider_host.h
+++ b/content/browser/service_worker/service_worker_provider_host.h
@@ -89,6 +89,10 @@ class CONTENT_EXPORT ServiceWorkerProviderHost
// process state. That would be indicative of a bad IPC message.
bool SetHostedVersionId(int64 versions_id);
+ // Sets the controller version field to |version| or if |version| is NULL,
+ // clears the field.
+ void SetControllerVersionAttribute(ServiceWorkerVersion* version);
+
// Returns a handler for a request, the handler may return NULL if
// the request doesn't require special handling.
scoped_ptr<ServiceWorkerRequestHandler> CreateRequestHandler(
@@ -129,10 +133,6 @@ class CONTENT_EXPORT ServiceWorkerProviderHost
ServiceWorkerVersion* waiting_version,
ServiceWorkerVersion* active_version);
- // Sets the controller version field to |version| or if |version| is NULL,
- // clears the field.
- void SetControllerVersionAttribute(ServiceWorkerVersion* version);
-
// Creates a ServiceWorkerHandle to retain |version| and returns a
// ServiceWorkerInfo with the handle ID to pass to the provider. The
// provider is responsible for releasing the handle.

Powered by Google App Engine
This is Rietveld 408576698