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

Unified Diff: content/public/browser/service_worker_context.h

Issue 2924213002: Draft: Dispatching extension events to stopped extension SW.
Patch Set: rebase @tott Created 3 years, 6 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/public/browser/service_worker_context.h
diff --git a/content/public/browser/service_worker_context.h b/content/public/browser/service_worker_context.h
index 9a9aa0a823a13218c9f0e3a37a533eaf6ea702f8..d68ee71da435745cd8c743f767130bb2f8d8d977 100644
--- a/content/public/browser/service_worker_context.h
+++ b/content/public/browser/service_worker_context.h
@@ -107,6 +107,15 @@ class ServiceWorkerContext {
virtual bool FinishedExternalRequest(int64_t service_worker_version_id,
const std::string& request_uuid) = 0;
+ // Starts a previously registered worker at |origin| and returns running
+ // worker info via |info_callback|.
+ // Returned info contains worker render process id and worker thread id.
+ // Must be called on IO thread.
+ virtual void GetWorkerInfoAfterStartWorker(
+ const GURL& origin,
+ base::OnceCallback<void(int, int)> info_callback,
+ base::OnceCallback<void()> failure_callback) = 0;
+
// Equivalent to calling navigator.serviceWorker.unregister(pattern) from a
// renderer, except that |pattern| is an absolute URL instead of relative to
// some current origin. |callback| is passed true when the JS promise is
« no previous file with comments | « content/browser/service_worker/service_worker_context_wrapper.cc ('k') | content/public/renderer/content_renderer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698