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

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

Issue 1042933002: ServiceWorker: Support non-window clients in Clients.matchAll (1/2 chromium) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 eb678632ff9189adf66c1d3e0441282222ee67f6..e624de707958f10df89f853f19ced6b1d6b6a274 100644
--- a/content/browser/service_worker/service_worker_provider_host.h
+++ b/content/browser/service_worker/service_worker_provider_host.h
@@ -106,6 +106,7 @@ class CONTENT_EXPORT ServiceWorkerProviderHost
const GURL& topmost_frame_url() const { return topmost_frame_url_; }
ServiceWorkerProviderType provider_type() const { return provider_type_; }
+ blink::WebServiceWorkerClientType client_type() const;
// Associates to |registration| to listen for its version change events.
void AssociateRegistration(ServiceWorkerRegistration* registration);
@@ -157,13 +158,13 @@ class CONTENT_EXPORT ServiceWorkerProviderHost
void Focus(const GetClientInfoCallback& callback);
// Asks the renderer to send back the document information.
- void GetClientInfo(const GetClientInfoCallback& callback) const;
+ void GetWindowClientInfo(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);
+ static ServiceWorkerClientInfo GetWindowClientInfoOnUI(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.

Powered by Google App Engine
This is Rietveld 408576698