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

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

Issue 2497983002: PaymentApp: Implement PaymentAppManager.setManifest(). (Closed)
Patch Set: rebase Created 4 years, 1 month 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_context_wrapper.h
diff --git a/content/browser/service_worker/service_worker_context_wrapper.h b/content/browser/service_worker/service_worker_context_wrapper.h
index 125de792858ae6805ac9703c8b6db31e5934cf7b..a130f9412de5c14fa7b7113603b94ceb8bdfaecd 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.h
+++ b/content/browser/service_worker/service_worker_context_wrapper.h
@@ -144,6 +144,21 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
const GURL& document_url,
const FindRegistrationCallback& callback);
+ // Returns the registration for |scope|. It is guaranteed that the returned
+ // registration has the activated worker.
+ //
+ // - If the registration is not found, returns ERROR_NOT_FOUND.
+ // - If the registration has neither the waiting version nor the active
+ // version, returns ERROR_NOT_FOUND.
+ // - If the registration does not have the active version but has the waiting
+ // version, activates the waiting version and runs |callback| when it is
+ // activated.
+ //
+ // Must be called from the IO thread.
+ void FindReadyRegistrationForPattern(
+ const GURL& scope,
+ const FindRegistrationCallback& callback);
+
// Returns the registration for |registration_id|. It is guaranteed that the
// returned registration has the activated worker.
//

Powered by Google App Engine
This is Rietveld 408576698