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

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

Issue 985113002: ServiceWorker: coalesce all SWClientInfo request into one task. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@relax_sw_openWindow
Patch Set: Created 5 years, 9 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 a4f370418c34ae6b2b80f995cb91a03e207cd650..0943e2f38fcd42fdd993ecd9c9dc0456c9eeabe8 100644
--- a/content/browser/service_worker/service_worker_provider_host.h
+++ b/content/browser/service_worker/service_worker_provider_host.h
@@ -155,6 +155,12 @@ class CONTENT_EXPORT ServiceWorkerProviderHost
// Asks the renderer to send back the document information.
void GetClientInfo(const GetClientInfoCallback& callback) const;
+ // Same as above but has to be called from the UI thread.
+ // It is taking the process and frame ids in parameter because |this| is meant
+ // to live on the IO thread.
+ static ServiceWorkerClientInfo GetClientInfoOnUI(int render_process_id,
+ int render_frame_id);
+
// Adds reference of this host's process to the |pattern|, the reference will
// be removed in destructor.
void AddScopedProcessReferenceToPattern(const GURL& pattern);

Powered by Google App Engine
This is Rietveld 408576698