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

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

Issue 871013003: Gather the ServiceWorker client information in the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rfh_getvisibilitystate
Patch Set: rebase Created 5 years, 11 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 03cb0c638d04a2e688e2a9d0843d0bac1efd9da2..abe7fa382e26f5ae9a2f579f984984640629ff22 100644
--- a/content/browser/service_worker/service_worker_provider_host.h
+++ b/content/browser/service_worker/service_worker_provider_host.h
@@ -45,7 +45,9 @@ class CONTENT_EXPORT ServiceWorkerProviderHost
: public NON_EXPORTED_BASE(ServiceWorkerRegistration::Listener),
public base::SupportsWeakPtr<ServiceWorkerProviderHost> {
public:
- typedef base::Callback<void(bool)> FocusCallback;
+ using FocusCallback = base::Callback<void(bool)>;
+ using GetClientInfoCallback =
+ base::Callback<void(const ServiceWorkerClientInfo&)>;
ServiceWorkerProviderHost(int render_process_id,
int render_frame_id,
@@ -144,7 +146,7 @@ class CONTENT_EXPORT ServiceWorkerProviderHost
void Focus(const FocusCallback& callback);
// Asks the renderer to send back the document information.
- void GetClientInfo(int embedded_worker_id, int request_id);
+ void GetClientInfo(const GetClientInfoCallback& callback);
// 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