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

Side by Side Diff: third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h

Issue 1619703002: Implement notificationclose event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nits Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // ServiceWorker specific method. Called after InstallEvent (dispatched 121 // ServiceWorker specific method. Called after InstallEvent (dispatched
122 // via WebServiceWorkerContextProxy) is handled by the ServiceWorker's 122 // via WebServiceWorkerContextProxy) is handled by the ServiceWorker's
123 // script context. 123 // script context.
124 virtual void didHandleInstallEvent(int installEventID, WebServiceWorkerEvent Result result) { } 124 virtual void didHandleInstallEvent(int installEventID, WebServiceWorkerEvent Result result) { }
125 125
126 // ServiceWorker specific method. Called after NotificationClickEvent 126 // ServiceWorker specific method. Called after NotificationClickEvent
127 // (dispatched via WebServiceWorkerContextProxy) is handled by the 127 // (dispatched via WebServiceWorkerContextProxy) is handled by the
128 // ServiceWorker's script context. 128 // ServiceWorker's script context.
129 virtual void didHandleNotificationClickEvent(int eventID, WebServiceWorkerEv entResult result) { } 129 virtual void didHandleNotificationClickEvent(int eventID, WebServiceWorkerEv entResult result) { }
130 130
131 // ServiceWorker specific method. Called after NotificationCloseEvent
132 // (dispatched via WebServiceWorkerContextProxy) is handled by the
133 // ServiceWorker's script context.
134 virtual void didHandleNotificationCloseEvent(int eventID, WebServiceWorkerEv entResult result) { }
135
131 // ServiceWorker specific method. Called after PushEvent (dispatched via 136 // ServiceWorker specific method. Called after PushEvent (dispatched via
132 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script 137 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script
133 // context. 138 // context.
134 virtual void didHandlePushEvent(int pushEventID, WebServiceWorkerEventResult result) { } 139 virtual void didHandlePushEvent(int pushEventID, WebServiceWorkerEventResult result) { }
135 140
136 // ServiceWorker specific method. Called after SyncEvent (dispatched via 141 // ServiceWorker specific method. Called after SyncEvent (dispatched via
137 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script 142 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script
138 // context. 143 // context.
139 virtual void didHandleSyncEvent(int syncEventID, WebServiceWorkerEventResult result) { } 144 virtual void didHandleSyncEvent(int syncEventID, WebServiceWorkerEventResult result) { }
140 145
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 virtual void navigate(const WebString& uuid, const WebURL&, WebServiceWorker ClientCallbacks*) { BLINK_ASSERT_NOT_REACHED(); } 196 virtual void navigate(const WebString& uuid, const WebURL&, WebServiceWorker ClientCallbacks*) { BLINK_ASSERT_NOT_REACHED(); }
192 197
193 // Called when the worker wants to register subscopes to handle via foreign 198 // Called when the worker wants to register subscopes to handle via foreign
194 // fetch. Will only be called while an install event is in progress. 199 // fetch. Will only be called while an install event is in progress.
195 virtual void registerForeignFetchScopes(const WebVector<WebURL>& subScopes) { BLINK_ASSERT_NOT_REACHED(); } 200 virtual void registerForeignFetchScopes(const WebVector<WebURL>& subScopes) { BLINK_ASSERT_NOT_REACHED(); }
196 }; 201 };
197 202
198 } // namespace blink 203 } // namespace blink
199 204
200 #endif // WebServiceWorkerContextClient_h 205 #endif // WebServiceWorkerContextClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698