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

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

Issue 771103002: Implement ServiceWorkerClient attributes [2/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 7f6f74900370982846209114b62bd8df8375995f..e889c1bbeefb56e5d6938d91b4353ac2a7a700cd 100644
--- a/content/browser/service_worker/service_worker_version.h
+++ b/content/browser/service_worker/service_worker_version.h
@@ -249,6 +249,8 @@ class CONTENT_EXPORT ServiceWorkerVersion
bool is_doomed() const { return is_doomed_; }
private:
+ class GetClientInfoCallback;
+
friend class base::RefCounted<ServiceWorkerVersion>;
FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest,
ActivateWaitingVersion);
@@ -287,6 +289,9 @@ 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,
@@ -327,6 +332,7 @@ class CONTENT_EXPORT ServiceWorkerVersion
IDMap<StatusCallback, IDMapOwnPointer> notification_click_callbacks_;
IDMap<StatusCallback, IDMapOwnPointer> push_callbacks_;
IDMap<StatusCallback, IDMapOwnPointer> geofencing_callbacks_;
+ IDMap<GetClientInfoCallback> get_client_info_callbacks_;
ControlleeMap controllee_map_;
ControlleeByIDMap controllee_by_id_;

Powered by Google App Engine
This is Rietveld 408576698