Index: content/browser/service_worker/service_worker_client_utils.h |
diff --git a/content/browser/service_worker/service_worker_client_utils.h b/content/browser/service_worker/service_worker_client_utils.h |
index 258268e1e0d2cbe93c698a3970add5fddb7fd2a8..c4bf3129cf146051f6dc9d285154c4248f65a5f0 100644 |
--- a/content/browser/service_worker/service_worker_client_utils.h |
+++ b/content/browser/service_worker/service_worker_client_utils.h |
@@ -10,6 +10,7 @@ |
#include "base/callback.h" |
#include "base/memory/weak_ptr.h" |
+#include "content/browser/service_worker/service_worker_provider_host.h" |
#include "content/common/service_worker/service_worker_status_code.h" |
class GURL; |
@@ -25,7 +26,6 @@ namespace service_worker_client_utils { |
using NavigationCallback = |
base::Callback<void(ServiceWorkerStatusCode status, |
- const std::string& client_uuid, |
const ServiceWorkerClientInfo& client_info)>; |
using ServiceWorkerClients = std::vector<ServiceWorkerClientInfo>; |
using ClientsCallback = base::Callback<void(ServiceWorkerClients* clients)>; |
@@ -47,6 +47,14 @@ void NavigateClient(const GURL& url, |
const base::WeakPtr<ServiceWorkerContextCore>& context, |
const NavigationCallback& callback); |
+// Gets a client matched by |client_uuid|. |callback| is called with the client |
+// information on completion. |
+void GetClient( |
+ const base::WeakPtr<ServiceWorkerVersion>& controller, |
+ const std::string& client_uuid, |
+ const base::WeakPtr<ServiceWorkerContextCore>& context, |
+ const ServiceWorkerProviderHost::GetClientInfoCallback& callback); |
+ |
// Collects clients matched with |options|. |callback| is called with the client |
// information sorted in MRU order (most recently focused order) on completion. |
void GetClients(const base::WeakPtr<ServiceWorkerVersion>& controller, |