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

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

Issue 893783002: Revert of Gather the ServiceWorker client information in the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rfh_getvisibilitystate
Patch Set: 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_version.h
diff --git a/content/browser/service_worker/service_worker_version.h b/content/browser/service_worker/service_worker_version.h
index 25816c9ff66ad0e7f82128418c97fdeada01e9d3..6954a4208010e064ca83afbc39d6aa48f6eec63f 100644
--- a/content/browser/service_worker/service_worker_version.h
+++ b/content/browser/service_worker/service_worker_version.h
@@ -36,14 +36,13 @@
namespace content {
class EmbeddedWorkerRegistry;
+struct NavigatorConnectClient;
+struct PlatformNotificationData;
class ServiceWorkerContextCore;
class ServiceWorkerProviderHost;
class ServiceWorkerRegistration;
class ServiceWorkerURLRequestJob;
class ServiceWorkerVersionInfo;
-struct NavigatorConnectClient;
-struct PlatformNotificationData;
-struct ServiceWorkerClientInfo;
// This class corresponds to a specific version of a ServiceWorker
// script for a given pattern. When a script is upgraded, there may be
@@ -60,6 +59,9 @@
typedef base::Callback<void(ServiceWorkerStatusCode,
ServiceWorkerFetchEventResult,
const ServiceWorkerResponse&)> FetchCallback;
+ typedef base::Callback<void(ServiceWorkerStatusCode,
+ const ServiceWorkerClientInfo&)>
+ GetClientInfoCallback;
typedef base::Callback<void(ServiceWorkerStatusCode, bool)>
CrossOriginConnectCallback;
@@ -333,6 +335,9 @@
// Message handlers.
void OnGetClientDocuments(int request_id);
+ void OnGetClientInfoSuccess(int request_id,
+ const ServiceWorkerClientInfo& info);
+ void OnGetClientInfoError(int request_id);
void OnActivateEventFinished(int request_id,
blink::WebServiceWorkerEventResult result);
void OnInstallEventFinished(int request_id,
@@ -357,6 +362,7 @@
void DidSkipWaiting(int request_id);
void DidGetClientInfo(int client_id,
scoped_refptr<GetClientDocumentsCallback> callback,
+ ServiceWorkerStatusCode status,
const ServiceWorkerClientInfo& info);
void ScheduleStopWorker();
void StopWorkerIfIdle();
@@ -387,6 +393,7 @@
IDMap<StatusCallback, IDMapOwnPointer> notification_click_callbacks_;
IDMap<StatusCallback, IDMapOwnPointer> push_callbacks_;
IDMap<StatusCallback, IDMapOwnPointer> geofencing_callbacks_;
+ IDMap<GetClientInfoCallback, IDMapOwnPointer> get_client_info_callbacks_;
IDMap<CrossOriginConnectCallback, IDMapOwnPointer>
cross_origin_connect_callbacks_;

Powered by Google App Engine
This is Rietveld 408576698