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

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: rebase 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 c41e7777187355b97895f55ab7ad7dc11ac58cc6..ef4132003959cd729ed9be4affca836e639d6986 100644
--- a/content/browser/service_worker/service_worker_version.h
+++ b/content/browser/service_worker/service_worker_version.h
@@ -252,6 +252,9 @@ class CONTENT_EXPORT ServiceWorkerVersion
bool is_doomed() const { return is_doomed_; }
private:
+ class GetClientDocumentsCallback;
+ class GetClientInfoCallback;
+
friend class base::RefCounted<ServiceWorkerVersion>;
FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest,
ActivateWaitingVersion);
@@ -290,6 +293,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,
@@ -330,6 +336,7 @@ 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_;
ControlleeMap controllee_map_;
ControlleeByIDMap controllee_by_id_;

Powered by Google App Engine
This is Rietveld 408576698