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

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

Issue 2534403002: [ServiceWorker] Mojofy extendable message event. (Closed)
Patch Set: Rebase only Created 4 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 8b6d2e2632779959776d2c6867498b7e7718f372..7108815b90074b49bcd9467fb1dac9e2eaf9e8b5 100644
--- a/content/browser/service_worker/service_worker_version.h
+++ b/content/browser/service_worker/service_worker_version.h
@@ -416,6 +416,13 @@ class CONTENT_EXPORT ServiceWorkerVersion
return max_request_expiration_time_ - tick_clock_->NowTicks();
}
+ // Callback function for simple events dispatched through mojo interface
+ // mojom::ServiceWorkerEventDispatcher, once all simple events got dispatched
+ // through mojo, OnSimpleEventResponse function could be removed.
+ void OnSimpleEventFinished(int request_id,
+ ServiceWorkerStatusCode status,
+ base::Time dispatch_event_time);
+
private:
friend class base::RefCounted<ServiceWorkerVersion>;
friend class ServiceWorkerMetrics;
@@ -588,6 +595,10 @@ class CONTENT_EXPORT ServiceWorkerVersion
void OnGetClients(int request_id,
const ServiceWorkerClientQueryOptions& options);
+ // Receiver function of responses of simple events dispatched through chromium
+ // IPCs. This is internally the same with OnSimpleEventFinished and will be
+ // replaced with OnSimpleEventFinished after all of simple events are
+ // dispatched via mojo.
void OnSimpleEventResponse(int request_id,
blink::WebServiceWorkerEventResult result,
base::Time dispatch_event_time);

Powered by Google App Engine
This is Rietveld 408576698