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

Unified Diff: content/browser/service_worker/service_worker_version.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
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 6954a4208010e064ca83afbc39d6aa48f6eec63f..25816c9ff66ad0e7f82128418c97fdeada01e9d3 100644
--- a/content/browser/service_worker/service_worker_version.h
+++ b/content/browser/service_worker/service_worker_version.h
@@ -36,13 +36,14 @@ struct WebCircularGeofencingRegion;
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
@@ -59,9 +60,6 @@ class CONTENT_EXPORT ServiceWorkerVersion
typedef base::Callback<void(ServiceWorkerStatusCode,
ServiceWorkerFetchEventResult,
const ServiceWorkerResponse&)> FetchCallback;
- typedef base::Callback<void(ServiceWorkerStatusCode,
- const ServiceWorkerClientInfo&)>
- GetClientInfoCallback;
typedef base::Callback<void(ServiceWorkerStatusCode, bool)>
CrossOriginConnectCallback;
@@ -335,9 +333,6 @@ class CONTENT_EXPORT ServiceWorkerVersion
// 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,
@@ -362,7 +357,6 @@ class CONTENT_EXPORT ServiceWorkerVersion
void DidSkipWaiting(int request_id);
void DidGetClientInfo(int client_id,
scoped_refptr<GetClientDocumentsCallback> callback,
- ServiceWorkerStatusCode status,
const ServiceWorkerClientInfo& info);
void ScheduleStopWorker();
void StopWorkerIfIdle();
@@ -393,7 +387,6 @@ class CONTENT_EXPORT ServiceWorkerVersion
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