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

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: cleanup 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
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_provider_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 99898a9e064c6746fd9739cf0f968030efc379a7..9a1511c686a37f7465193c4524bf3fa17008d963 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&)>;
// If |render_frame_id| is MSG_ROUTING_NONE, this provider host works for the
// worker context.
@@ -146,7 +148,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.
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_provider_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698