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

Unified Diff: content/renderer/service_worker/service_worker_script_context.h

Issue 296463005: Push API: fire push event from chrome://serviceworker-internals/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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/renderer/service_worker/service_worker_script_context.h
diff --git a/content/renderer/service_worker/service_worker_script_context.h b/content/renderer/service_worker/service_worker_script_context.h
index e455fbfd4111300a7fc25792020f99640be86398..e6dc4b57ad90db259de758c9373c198fbb312a0d 100644
--- a/content/renderer/service_worker/service_worker_script_context.h
+++ b/content/renderer/service_worker/service_worker_script_context.h
@@ -49,6 +49,7 @@ class ServiceWorkerScriptContext {
ServiceWorkerFetchEventResult result,
const ServiceWorkerResponse& response);
void DidHandleSyncEvent(int request_id);
+ void DidHandlePushEvent(int request_id);
void GetClientDocuments(
blink::WebServiceWorkerClientsCallbacks* callbacks);
void PostMessageToDocument(
@@ -67,6 +68,7 @@ class ServiceWorkerScriptContext {
void OnInstallEvent(int request_id, int active_version_id);
void OnFetchEvent(int request_id, const ServiceWorkerFetchRequest& request);
void OnSyncEvent(int request_id);
+ void OnPushEvent(int request_id);
void OnPostMessage(const base::string16& message,
const std::vector<int>& sent_message_port_ids,
const std::vector<int>& new_routing_ids);

Powered by Google App Engine
This is Rietveld 408576698